See ChangeLog

Monotone-Parent: f68bc0f7c4af372fd5c49f8961ad1605dd875d1f
Monotone-Revision: 08c3123324ab89795cc2faa5f26bd5427cd30786

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-12-30T22:25:30
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2008-12-30 22:25:30 +00:00
parent 28aeaa6fee
commit 0fe7a9df57
2 changed files with 20 additions and 0 deletions
+9
View File
@@ -8,6 +8,15 @@
UI/WebServerResources/SchedulerUI.js
Fixed the escaping of characters and associated
search methods.
* SoObjects/SOGo/SOGoGCSFolder.m
([SOGoGCSFolder aclsForUser:forObjectAtPath:]):
Added two new defaults to control the default
ACLs when none are specified:
SOGoCalendarDefaultRoles and SOGoContactsDefaultRoles
They are both arrays in which we set strings,
for example :
SOGoCalendarDefaultRoles = ("ObjectCreator", "PublicViewer");
SOGoContactsDefaultRoles = ("ObjectEditor");
2008-12-30 Francis Lachapelle <flachapelle@inverse.ca>
+11
View File
@@ -819,6 +819,17 @@ static NSArray *childRecordFields = nil;
acls = [self aclsForUser: defaultUserID
forObjectAtPath: objectPathArray];
// If we still don't have ACLs defined for this particular resource,
// let's go get the system-wide defaults, if any.
if (![acls count])
{
if ([[container nameInContainer] isEqualToString: @"Calendar"] ||
[[container nameInContainer] isEqualToString: @"Contacts"])
acls = [[NSUserDefaults standardUserDefaults]
objectForKey: [NSString stringWithFormat: @"SOGo%@DefaultRoles",
[container nameInContainer]]];
}
return acls;
}