(fix) Restore methods in UIxCalUserRightsEditor

This commit is contained in:
Francis Lachapelle
2015-06-12 16:12:14 -04:00
parent 8100dfa797
commit af6e20d627
2 changed files with 15 additions and 2 deletions
-2
View File
@@ -39,10 +39,8 @@
- (NSArray *) rightTypes;
- (void) setUserCanCreateObjects: (BOOL) userCanCreateObjects;
- (BOOL) userCanCreateObjects;
- (void) setUserCanEraseObjects: (BOOL) userCanEraseObjects;
- (BOOL) userCanEraseObjects;
@end
+15
View File
@@ -155,6 +155,11 @@
@"Responder", @"Modifier", nil]);
}
- (NSArray *) rightTypes
{
return [NSArray arrayWithObjects: @"Public", @"Confidential", @"Private", nil];
}
- (void) setCurrentRight: (NSString *) newCurrentRight
{
ASSIGN (currentRight, newCurrentRight);
@@ -171,4 +176,14 @@
[NSString stringWithFormat: @"label_%@", currentRight]];
}
- (BOOL) userCanCreateObjects
{
return [userRights containsObject: SOGoRole_ObjectCreator];
}
- (BOOL) userCanEraseObjects
{
return [userRights containsObject: SOGoRole_ObjectEraser];
}
@end