Monotone-Parent: d50828fc631dc9f6d731dcbde3c7ea33f6c422d9

Monotone-Revision: fbd35c1bda900f820e4a0b103f299f77ae52fa16

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-04-24T22:40:05
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-04-24 22:40:05 +00:00
parent bc5b3a15ab
commit d4f2403ba7
4 changed files with 49 additions and 17 deletions
+6
View File
@@ -1,5 +1,11 @@
2007-04-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoPermissions.[hm]: added
[Public,Private,Confidential]
x[Viewer,DAndTViewer,Responder,Modifier]. Renamed
SOGoRole_ORganizer to SOGoCalendarRole_Organizer. Same for
..._Participant. Removed SOGoRole_Assistant and SOGoRole_Delegate.
* SoObjects/Appointments/SOGoAppointmentFolder.m
([SOGoAppointmentFolder -defaultAclRoles]): new overriden method
that defines default roles for new elements in the acl.
@@ -450,9 +450,9 @@ static BOOL sendEMailNotifications = NO;
if (component)
{
if ([component isOrganizer: email])
[sogoRoles addObject: SOGoRole_Organizer];
[sogoRoles addObject: SOGoCalendarRole_Organizer];
else if ([component isParticipant: email])
[sogoRoles addObject: SOGoRole_Participant];
[sogoRoles addObject: SOGoCalendarRole_Participant];
else if ([[container ownerInContext: context] isEqualToString: login])
[sogoRoles addObject: SoRole_Owner];
}
+19 -6
View File
@@ -27,16 +27,29 @@
#import <NGObjWeb/SoPermissions.h>
extern NSString *SOGoRole_Assistant;
extern NSString *SOGoRole_Delegate;
extern NSString *SOGoRole_FreeBusyLookup;
extern NSString *SOGoRole_ObjectCreator;
extern NSString *SOGoRole_ObjectEraser;
extern NSString *SOGoRole_FreeBusy;
extern NSString *SOGoRole_FreeBusyLookup;
extern NSString *SOGoPerm_ReadAcls;
extern NSString *SOGoPerm_CreateAndModifyAcls;
extern NSString *SOGoPerm_FreeBusyLookup;
extern NSString *SOGoRole_Organizer;
extern NSString *SOGoRole_Participant;
extern NSString *SOGoCalendarRole_Organizer;
extern NSString *SOGoCalendarRole_Participant;
extern NSString *SOGoCalendarRole_PublicViewer;
extern NSString *SOGoCalendarRole_PublicDAndTViewer;
extern NSString *SOGoCalendarRole_PublicModifier;
extern NSString *SOGoCalendarRole_PublicResponder;
extern NSString *SOGoCalendarRole_PrivateViewer;
extern NSString *SOGoCalendarRole_PrivateDAndTViewer;
extern NSString *SOGoCalendarRole_PrivateModifier;
extern NSString *SOGoCalendarRole_PrivateResponder;
extern NSString *SOGoCalendarRole_ConfidentialViewer;
extern NSString *SOGoCalendarRole_ConfidentialDAndTViewer;
extern NSString *SOGoCalendarRole_ConfidentialModifier;
extern NSString *SOGoCalendarRole_ConfidentialResponder;
#endif /* SOGOPERMISSIONS_H */
+22 -9
View File
@@ -22,25 +22,38 @@
#import "SOGoPermissions.h"
NSString *SOGoRole_Assistant = @"Assistant"; /* a colleague */
NSString *SOGoRole_Delegate = @"Delegate"; /* a colleague or person that I
trust in adding or modifying my
data */
/* General */
NSString *SOGoRole_ObjectCreator = @"ObjectCreator";
NSString *SOGoRole_ObjectEraser = @"ObjectEraser";
NSString *SOGoRole_FreeBusy = @"FreeBusy"; /* for the "freebusy" special user
*/
NSString *SOGoRole_FreeBusyLookup = @"FreeBusyLookup"; /* for users that have
access to the
freebusy information
from a specific
calendar */
NSString *SOGoRole_FreeBusy = @"FreeBusy"; /* for the "freebusy" special user
*/
/* Calendar */
NSString *SOGoRole_Organizer = @"Organizer";
NSString *SOGoRole_Participant = @"Participant";
NSString *SOGoCalendarRole_Organizer = @"Organizer";
NSString *SOGoCalendarRole_Participant = @"Participant";
NSString *SOGoCalendarRole_PublicViewer = @"PublicViewer";
NSString *SOGoCalendarRole_PublicDAndTViewer = @"PublicDAndTViewer";
NSString *SOGoCalendarRole_PublicModifier = @"PublicModifier";
NSString *SOGoCalendarRole_PublicResponder = @"PublicResponder";
NSString *SOGoCalendarRole_PrivateViewer = @"PrivateViewer";
NSString *SOGoCalendarRole_PrivateDAndTViewer = @"PrivateDAndTViewer";
NSString *SOGoCalendarRole_PrivateModifier = @"PrivateModifier";
NSString *SOGoCalendarRole_PrivateResponder = @"PrivateResponder";
NSString *SOGoCalendarRole_ConfidentialViewer = @"ConfidentialViewer";
NSString *SOGoCalendarRole_ConfidentialDAndTViewer = @"ConfidentialDAndTViewer";
NSString *SOGoCalendarRole_ConfidentialModifier = @"ConfidentialModifier";
NSString *SOGoCalendarRole_ConfidentialResponder = @"ConfidentialResponder";
/* permissions */
#warning ReadAcls still not used...
NSString *SOGoPerm_ReadAcls = @"ReadAcls"; /* the equivalent of "read-acl" in
the WebDAV acls spec, which is
currently missing from SOPE */
NSString *SOGoPerm_CreateAndModifyAcls = @"CreateAndModifyAcls";
NSString *SOGoPerm_FreeBusyLookup = @"FreeBusyLookup";