Skip to content

Commit 232d945

Browse files
committed
Calendar: Fix missing check on allow_personal_agenda events setting - refs #4738
1 parent e0751a7 commit 232d945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/calendar/agenda_js.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
$tpl->assign('google_calendar_url', $googleCalendarUrl);
102102
}
103103
$this_section = SECTION_MYAGENDA;
104-
if (!api_is_anonymous()) {
104+
if (!api_is_anonymous() && ('true' === api_get_setting('allow_personal_agenda'))) {
105105
$can_add_events = 1;
106106
}
107107
break;

0 commit comments

Comments
 (0)