ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Static Public Member Functions | |
static | getAdminLoginURL ($returnTo=null) |
Retrieve a admin login URL. More... | |
static | isAdmin () |
Check whether the current user is admin. More... | |
static | requireAdmin () |
Require admin access to the current page. More... | |
|
static |
Retrieve a admin login URL.
string | NULL | $returnTo | The URL the user should arrive on after admin authentication. Defaults to null. |
Definition at line 22 of file Auth.php.
References $returnTo, array, and SimpleSAML\Module\getModuleURL().
Referenced by SimpleSAML_Utilities\getAdminLoginURL().
|
static |
Check whether the current user is admin.
Definition at line 42 of file Auth.php.
References $session, and SimpleSAML_Session\getSessionFromRequest().
Referenced by SimpleSAML_Utilities\isAdmin().
|
static |
Require admin access to the current page.
This is a helper function for limiting a page to those with administrative access. It will redirect the user to a login page if the current user doesn't have admin access.
Definition at line 60 of file Auth.php.
References $as, and SimpleSAML_Auth_Source\getById().
Referenced by sspmod_statistics_AccessCheck\checkAccess(), and SimpleSAML_Utilities\requireAdmin().