From b5959d9677bd132a58f6408f552aac96ceeae621 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 6 Sep 2007 22:12:42 +0000 Subject: [PATCH] Monotone-Parent: afc4594b09285c6c59dbdd9ba466cdfe352a1366 Monotone-Revision: 68829b8813dea7e8e29d7bf891b487ac57d66bbe Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-06T22:12:42 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/SOGo/SOGoUserFolder.m | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 828e27eec..83eb49c35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-09-06 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder +initialize]): + moved the requirement of authentication from the SOGo application + class to here. + * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -saveContentString:_iCalbaseSequence:_v]): check whether the new appointment object is still relevant before diff --git a/SoObjects/SOGo/SOGoUserFolder.m b/SoObjects/SOGo/SOGoUserFolder.m index 8db12b30e..10194d27a 100644 --- a/SoObjects/SOGo/SOGoUserFolder.m +++ b/SoObjects/SOGo/SOGoUserFolder.m @@ -23,6 +23,7 @@ #import #import +#import #import #import @@ -37,6 +38,21 @@ @implementation SOGoUserFolder ++ (void) initialize +{ + SoClassSecurityInfo *sInfo; + NSArray *basicRoles; + + sInfo = [self soClassSecurityInfo]; + [sInfo declareObjectProtected: SoPerm_View]; + + basicRoles = [NSArray arrayWithObject: SoRole_Authenticated]; + + /* require Authenticated role for View and WebDAV */ + [sInfo declareRoles: basicRoles asDefaultForPermission: SoPerm_View]; + [sInfo declareRoles: basicRoles asDefaultForPermission: SoPerm_WebDAVAccess]; +} + /* accessors */ - (NSString *) login