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