mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 15:57:12 +00:00
Monotone-Parent: 2d1ca1ccfa858d6badd46ed9adcc4f390f22125b
Monotone-Revision: 4f3f7bdb86b48a58239e187db6765aa85a571d56 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-02-16T16:55:48 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
900c469e39
commit
bce1177499
2 files changed
+14
-1
No files matched your search
@@ -30,6 +30,8 @@
|
||||
|
||||
- (NSString *) roleOfUser: (NSString *) uid
|
||||
inContext: (WOContext *) context;
|
||||
- (NSArray *) rolesOfUser: (NSString *) uid
|
||||
inContext: (WOContext *) context;
|
||||
|
||||
@end
|
||||
|
||||
@@ -159,7 +161,14 @@
|
||||
aclsFolder = [SOGoAclsFolder aclsFolder];
|
||||
sogoRoles = [aclsFolder aclsForObject: (SOGoObject *) object
|
||||
forUser: login];
|
||||
[rolesForObject addObjectsFromArray: sogoRoles];
|
||||
if (sogoRoles)
|
||||
[rolesForObject addObjectsFromArray: sogoRoles];
|
||||
}
|
||||
if ([object respondsToSelector: @selector (rolesOfUser:inContext:)])
|
||||
{
|
||||
sogoRoles = [object rolesOfUser: login inContext: context];
|
||||
if (sogoRoles)
|
||||
[rolesForObject addObjectsFromArray: sogoRoles];
|
||||
}
|
||||
if ([object respondsToSelector: @selector (roleOfUser:inContext:)])
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user