Skip to content
Permalink
Browse files

Remove limit_session_admin_role from conf file and use setting #2708

  • Loading branch information...
AngelFQC committed Dec 12, 2018
1 parent ee5d8a5 commit a681bf55eac1742d1e4fca865f52679286b745b8
@@ -663,7 +663,7 @@ public function up(Schema $schema)
'',
'radio',
'Session',
($value?$value:'false'),
($value?'true':'false'),
'SessionAdminPermissionsLimitTitle',
'SessionAdminPermissionsLimitComment',
null,
@@ -122,7 +122,7 @@
];
if (api_is_session_admin()) {
if (true === api_get_configuration_value('limit_session_admin_role')) {
if ('true' === api_get_setting('limit_session_admin_role')) {
$items = array_filter($items, function (array $item) {
$urls = ['user_list.php', 'user_add.php'];
@@ -411,8 +411,6 @@
//$_configuration['session_admins_edit_courses_content'] = false;
// Adds roles to the system announcements (requires DB change BT#12476)
//$_configuration['system_announce_extra_roles'] = false;
// Limits the features that a session admin has access to from the main admin panel (removes users import and usergroups)
//$_configuration['limit_session_admin_role'] = false;
// Limits that a session admin has access to list users
//$_configuration['limit_session_admin_list_users'] = false;
// Course tools visibility edition in sessions

0 comments on commit a681bf5

Please sign in to comment.
You can’t perform that action at this time.