Allow super users to modify any event

Fixes #4216
pull/249/head
Francis Lachapelle 2019-03-13 09:08:31 -04:00
parent 826c10de25
commit 47456c9ebd
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -4,6 +4,7 @@
Bug fixes
- [web] fixed wrong translation of custom calendar categories
- [web] fixed wrong colors assigned to default calendar categories
- [core] allow super users to modify any event (#4216)
4.0.7 (2019-02-27)
------------------

View File

@ -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."];