mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-22 17:16:06 +00:00
Allow configuration of $c->restrict_admin_roles.
This commit is contained in:
parent
ad42769a91
commit
7644206a24
@ -107,6 +107,7 @@ class DAViCalSession extends Session
|
||||
dbg_error_log( 'LOG WARNING', 'Access to "%s" via "%s:%d" rejected.', $_SERVER['REQUEST_URI'], $current_domain, $_SERVER['SERVER_PORT'] );
|
||||
exit(0);
|
||||
}
|
||||
if ( isset($c->restrict_admin_roles) && $roles == '' ) $roles = $c->restrict_admin_roles;
|
||||
if ( $this->logged_in && $roles == '' ) return;
|
||||
if ( ! $this->logged_in ) {
|
||||
$c->messages[] = i18n('You must log in to use this system.');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user