diff --git a/main/calendar/agenda.php b/main/calendar/agenda.php index e57fbae366..89bee97fc3 100644 --- a/main/calendar/agenda.php +++ b/main/calendar/agenda.php @@ -178,7 +178,10 @@ if (empty($select_month)) { echo '
'; -if (api_is_allowed_to_edit(false, true) OR (api_get_course_setting('allow_user_edit_agenda') && !api_is_anonymous()) && api_is_allowed_to_session_edit(false, true)) { +if (api_is_allowed_to_edit(false, true) OR + (api_get_course_setting('allow_user_edit_agenda') && !api_is_anonymous()) && api_is_allowed_to_session_edit(false, true) OR + GroupManager::user_has_access(api_get_user_id(), $group_id, GroupManager::GROUP_TOOL_CALENDAR) && GroupManager::is_tutor_of_group(api_get_user_id(), $group_id) +) { echo display_courseadmin_links(); }