Fix handling of public access rights of Calendars

This commit is contained in:
Francis Lachapelle
2017-12-21 16:06:39 -05:00
parent b89752cd39
commit 429a3bedb9

View File

@@ -124,10 +124,13 @@
if ([currentValue isEqualToString: @"None"])
[self removeAllRightsFromList: rightsForType];
else if ([rightsForType containsObject: currentValue])
[self appendExclusiveRight: [NSString stringWithFormat: @"%@%@",
currentType, currentValue]
fromList: rightsForType];
else
{
currentValue = [NSString stringWithFormat: @"%@%@", currentType, currentValue];
if ([rightsForType containsObject: currentValue])
[self appendExclusiveRight: currentValue
fromList: rightsForType];
}
currentType = [types nextObject];
}