From: znek Date: Thu, 7 Jul 2005 13:47:39 +0000 (+0000) Subject: new method -isAccessRestricted X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a5b0b5075b8c6c6e23b8558191258a22b0e595f;p=scalable-opengroupware.org new method -isAccessRestricted git-svn-id: http://svn.opengroupware.org/SOGo/trunk@685 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/UI/SOGoUI/ChangeLog b/SOGo/UI/SOGoUI/ChangeLog index ab33da55..5d3d3496 100644 --- a/SOGo/UI/SOGoUI/ChangeLog +++ b/SOGo/UI/SOGoUI/ChangeLog @@ -1,3 +1,9 @@ +2005-07-07 Marcus Mueller + + * UIxComponent.m: added method -isAccessRestricted to indicate whether + certain options might have to be disabled due to restrictions + set by the customer (v0.9.26) + 2005-07-06 Helge Hess * UIxComponent.m: added method -isInvokedBySafeMethod to check whether diff --git a/SOGo/UI/SOGoUI/UIxComponent.m b/SOGo/UI/SOGoUI/UIxComponent.m index 0d904db5..1b8c3424 100644 --- a/SOGo/UI/SOGoUI/UIxComponent.m +++ b/SOGo/UI/SOGoUI/UIxComponent.m @@ -430,6 +430,16 @@ static BOOL uixDebugEnabled = NO; return [[self context] valueForKey:@"locale"]; } +/* Access is in several ways restricted if request is not coming from the + * Intranet + */ + +- (BOOL)isAccessRestricted { + NSUserDefaults *ud = [NSUserDefaults standardUserDefaults]; + + return [ud boolForKey:@"SOGoAccessIsRestricted"]; +} + /* debugging */ - (BOOL)isUIxDebugEnabled { diff --git a/SOGo/UI/SOGoUI/Version b/SOGo/UI/SOGoUI/Version index c7520230..f94f3e5d 100644 --- a/SOGo/UI/SOGoUI/Version +++ b/SOGo/UI/SOGoUI/Version @@ -1,5 +1,5 @@ # version file -SUBMINOR_VERSION:=25 +SUBMINOR_VERSION:=26 # v0.9.18 requires NGExtensions v4.5.136