mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-13 01:08:50 +00:00
Monotone-Parent: 7d51192a79be7bb49af7def9e40586067798f33c
Monotone-Revision: 5b58952c744a56c2daa202719e938af43febea1a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-01T20:54:54 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2007-06-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Contacts/UIxContactsUserRightsEditor.m
|
||||
([UIxContactsUserRightsEditor
|
||||
-setUserCanReadObjects:userCanReadObjects]): new method.
|
||||
|
||||
* SoObjects/SOGo/SOGoPermissions.m: added roles "FolderViewer" and
|
||||
"FolderEraser" and special permission "Access Object". Removed
|
||||
role "SOGoMailRole_MessageEraser" since "SOGoRole_ObjectEraser"
|
||||
|
||||
@@ -81,6 +81,19 @@
|
||||
return [userRights containsObject: SOGoRole_ObjectViewer];
|
||||
}
|
||||
|
||||
- (void) setUserCanReadObjects: (BOOL) userCanReadObjects
|
||||
{
|
||||
if (userCanReadObjects)
|
||||
[self appendRight: SOGoRole_ObjectReader];
|
||||
else
|
||||
[self removeRight: SOGoRole_ObjectReader];
|
||||
}
|
||||
|
||||
- (BOOL) userCanReadObjects
|
||||
{
|
||||
return [userRights containsObject: SOGoRole_ObjectReader];
|
||||
}
|
||||
|
||||
- (void) updateRights
|
||||
{
|
||||
WORequest *request;
|
||||
@@ -102,6 +115,11 @@
|
||||
else
|
||||
[self removeRight: SOGoRole_ObjectViewer];
|
||||
|
||||
if ([[request formValueForKey: @"ObjectReader"] length] > 0)
|
||||
[self appendRight: SOGoRole_ObjectReader];
|
||||
else
|
||||
[self removeRight: SOGoRole_ObjectReader];
|
||||
|
||||
if ([[request formValueForKey: @"ObjectEraser"] length] > 0)
|
||||
[self appendRight: SOGoRole_ObjectEraser];
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user