Allow super users to modify any event

Fixes #4216
This commit is contained in:
Francis Lachapelle committed 2019-03-13 09:08:31 -04:00
1 parent 826c10de25
commit 47456c9ebd
2 files changed
+2 -1

No files matched your search

@@ -2417,7 +2417,7 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent
roles = [[context activeUser] rolesForObject: organizerObject
inContext: context];
if (![roles containsObject: @"ComponentModifier"])
if (![roles containsObject: @"ComponentModifier"] && ![[context activeUser] isSuperUser])
{
return [NSException exceptionWithHTTPStatus: 409
reason: @"Not allowed to perform this action. Wrong SENT-BY being used regarding access rights on organizer's calendar."];