mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-08 01:45:08 +00:00
(fix) Restore methods in UIxCalUserRightsEditor
This commit is contained in:
@@ -39,10 +39,8 @@
|
||||
|
||||
- (NSArray *) rightTypes;
|
||||
|
||||
- (void) setUserCanCreateObjects: (BOOL) userCanCreateObjects;
|
||||
- (BOOL) userCanCreateObjects;
|
||||
|
||||
- (void) setUserCanEraseObjects: (BOOL) userCanEraseObjects;
|
||||
- (BOOL) userCanEraseObjects;
|
||||
|
||||
@end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user