mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 06:33:18 +00:00
(fix) Restore methods in UIxCalUserRightsEditor
This commit is contained in:
@@ -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