mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
400a1adfde
- Renamed method loginAS to loginASByUID in AuthLib.php - Added new public method loginASByPersonId to AuthLib.php - Renamed method connect to anonymousConnect in LDAPLib - Method LDAPLib->connectUsernamePassword now checks both username and password if they are empty strings - Added new constant LOGINAS_PERSONIDS_BLACKLIST to PermissionLib - Renamed method isEntitledLoginAS to isEntitledLoginASByUID in PermissionLib - Added new public method isEntitledLoginASByPersonId to PermissionLib - Added new private method _inLAPersonIdsBlacklist to PermissionLib
16 lines
661 B
PHP
16 lines
661 B
PHP
<?php
|
|
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
// List of permissions that are allowed to perform loginAs (empty array to avoid any checks)
|
|
$config['permission_loginas_allowed'] = array('admin');
|
|
|
|
// List of permissions that cannot be gained with loginAs (empty array to avoid any checks)
|
|
$config['permission_loginas_blacklist'] = array('admin');
|
|
|
|
// List of users whose identity cannot be obtained with loginAs
|
|
$config['permission_loginas_users_blacklist'] = array('_DummyLektor', '_DummyStudent');
|
|
|
|
// List of person ids whose identity cannot be obtained with loginAs
|
|
$config['permission_loginas_personids_blacklist'] = array(92);
|