ljr/ljcom/htdocs/doc/internal/fcgi-acheck.bml

10 lines
215 B
Plaintext
Raw Normal View History

2019-02-05 21:49:12 +00:00
<?_code
my $dbr = LJ::get_dbh("slave");
my $r = LJ::get_remote($dbr, $r);
unless (LJ::check_priv($dbr, $r, "siteadmin", "internaldocs")) {
return BML::http_response(401, "You don't get access")
}
_code?>