Skip to content
Permalink
Browse files

Add session_admins_edit_courses_content conf setting - refs BT#15095

  • Loading branch information...
AngelFQC committed Dec 5, 2018
1 parent d2c22a5 commit 74964fc204cb80f6a978b3ecb4d448861e928f36
Showing with 5 additions and 1 deletion.
  1. +3 −1 main/inc/lib/api.lib.php
  2. +2 −0 main/install/configuration.dist.php
@@ -3303,8 +3303,10 @@ function api_is_allowed_to_edit(
$session_coach = false,
$check_student_view = true
) {
$allowSessionAdminEdit = api_get_configuration_value('session_admins_edit_courses_content') === true;
// Admins can edit anything.
if (api_is_platform_admin(false)) {
if (api_is_platform_admin($allowSessionAdminEdit)) {
//The student preview was on
if ($check_student_view && api_is_student_view_active()) {
return false;
@@ -407,6 +407,8 @@
//$_configuration['session_list_show_count_users'] = false;
// Session admin access to all course content
//$_configuration['session_admins_access_all_content'] = false;
// Session admin allowed to edit all courses content
//$_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)

0 comments on commit 74964fc

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