init
This commit is contained in:
9
ljcom/htdocs/doc/internal/fcgi-acheck.bml
Normal file
9
ljcom/htdocs/doc/internal/fcgi-acheck.bml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?_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?>
|
||||
Reference in New Issue
Block a user