From 05e3bdca1326cc175d9a673b65ca43064961fb25 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 1 Jun 2010 18:49:01 +0000 Subject: [PATCH] Monotone-Parent: e5e3e8aeac9b5235e537766deabadd79882c8c99 Monotone-Revision: 209e7eb7e8da3fd5da422d48a58f4fd5f9e60d54 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-06-01T18:49:01 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ SoObjects/SOGo/SOGoSystemDefaults.h | 2 ++ SoObjects/SOGo/SOGoSystemDefaults.m | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1ad3407f9..2789b6434 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2010-06-01 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoSystemDefaults.m (-enablePublicAccess): new + accessor for the SOGoEnablePublicAccess boolean user default. + * SoObjects/SOGo/SOGoUserManager.m (-contactInfosForUserWithUIDorEmail:): return a fixed dictionary of information for uid = "anonymous". diff --git a/SoObjects/SOGo/SOGoSystemDefaults.h b/SoObjects/SOGo/SOGoSystemDefaults.h index 1752eb8e9..e5cc39534 100644 --- a/SoObjects/SOGo/SOGoSystemDefaults.h +++ b/SoObjects/SOGo/SOGoSystemDefaults.h @@ -64,6 +64,8 @@ - (NSString *) CASServiceURL; +- (BOOL) enablePublicAccess; + @end #endif /* SOGOSYSTEMDEFAULTS_H */ diff --git a/SoObjects/SOGo/SOGoSystemDefaults.m b/SoObjects/SOGo/SOGoSystemDefaults.m index 5849ccd77..5825285de 100644 --- a/SoObjects/SOGo/SOGoSystemDefaults.m +++ b/SoObjects/SOGo/SOGoSystemDefaults.m @@ -296,4 +296,9 @@ BootstrapNSUserDefaults () return [self stringForKey: @"SOGoCASServiceURL"]; } +- (BOOL) enablePublicAccess +{ + return [self boolForKey: @"SOGoEnablePublicAccess"]; +} + @end