Monotone-Parent: 3015b169187acab527747642b2900806a48dbe60

Monotone-Revision: c0ba6ea9411e86e50582cdd4036256776349b556

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-08-18T17:36:20
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-08-18 17:36:20 +00:00
parent 25a73572fa
commit 1652ba8c0b
2 changed files with 10 additions and 4 deletions
+2 -4
View File
@@ -1171,10 +1171,8 @@ static NSArray *childRecordFields = nil;
/* we only grant "userCanAccessAllObjects" for role "ObjectEraser" and
not "ObjectCreator" because the latter doesn't imply we can read
properties from subobjects or even know their existence. */
userCanAccessAllObjects = ([[self ownerInContext: localContext]
isEqualToString: login]
|| [[self aclsForUser: login]
containsObject: SOGoRole_ObjectEraser]);
userCanAccessAllObjects
= [[self ownerInContext: localContext] isEqualToString: login];
}
}