Skip to content

Commit

Permalink
Agenda: Allow personal agenda for non anons. BT#17761
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Sep 22, 2020
1 parent e458ccd commit f97c998
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main/inc/lib/agenda.lib.php
Expand Up @@ -2947,8 +2947,10 @@ public function displayActions($view, $filter = 0)

$form = '';
if (api_is_allowed_to_edit(false, true) ||
(api_get_course_setting('allow_user_edit_agenda') == '1' && !api_is_anonymous()) &&
api_is_allowed_to_session_edit(false, true)
('personal' === $this->type && !api_is_anonymous() && 'true' === api_get_setting('allow_personal_agenda')) ||
(
'1' === api_get_course_setting('allow_user_edit_agenda') && !api_is_anonymous() &&
api_is_allowed_to_session_edit(false, true))
|| (
GroupManager::user_has_access($currentUserId, $groupIid, GroupManager::GROUP_TOOL_CALENDAR)
&& GroupManager::is_tutor_of_group($currentUserId, $groupInfo)
Expand Down

0 comments on commit f97c998

Please sign in to comment.