Allow super users to modify any event

Fixes #4216
This commit is contained in:
Francis Lachapelle
2019-03-13 09:08:31 -04:00
parent 826c10de25
commit 47456c9ebd
2 changed files with 2 additions and 1 deletions
@@ -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."];