mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-24 07:29:28 +00:00
04b1ec327a
- It contains the following entries: - List of permissions that are allowed to perform loginAs - List of permissions that cannot be gained with loginAs - List of users whose identity cannot be obtained with loginAs - Removed config entries authentication_loginas_perms and authentication_loginas_blacklist from config file auth.php - Added constants to PermissionLib: LOGINAS_ALLOWED, LOGINAS_BLACKLIST and LOGINAS_USERS_BLACKLIST - PermissionLib loads the config file permission.php - Added public method isEntitledLoginAS to PermissionLib - Added private methods _inLAUsersBlacklist, _hasLANotAllowedPermissions and _hasLAPermissions to PermissionLib - Added public method loginAS to AuthLib - Fixed logout method in AuthLib - Fixed loginLDAP method in AuthLib
13 lines
460 B
PHP
13 lines
460 B
PHP
<?php
|
|
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
// List of permissions that are allowed to perform loginAs
|
|
$config['permission_loginas_allowed'] = array('admin');
|
|
|
|
// List of permissions that cannot be gained with loginAs
|
|
$config['permission_loginas_blacklist'] = array('admin');
|
|
|
|
// List of users whose identity cannot be obtained with loginAs
|
|
$config['permission_loginas_users_blacklist'] = array('_DummyLektor', '_DummyStudent');
|