diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' --exclude='SOGoSystemDefaults.*' SOGo-1.3.4-dist/UI/Common/UIxPageFrame.m SOGo-1.3.4/UI/Common/UIxPageFrame.m
--- SOGo-1.3.4-dist/UI/Common/UIxPageFrame.m	2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/UI/Common/UIxPageFrame.m	2010-12-08 09:27:51.000000000 +0100
@@ -458,9 +466,10 @@
   if ([auth respondsToSelector: @selector (cookieNameInContext:)])
     {
       sd = [SOGoSystemDefaults sharedSystemDefaults];
-      canLogoff = (([[sd authenticationType] isEqualToString: @"cas"]
-                    && [sd CASLogoutEnabled])
-                   || [[auth cookieNameInContext: context] length] > 0);
+      if ([[sd authenticationType] isEqualToString: @"cas"])
+	canLogoff = [sd CASLogoutEnabled];
+      else
+	canLogoff = [[auth cookieNameInContext: context] length] > 0;
     }
   else
     canLogoff = NO;
