]> err.no Git - scalable-opengroupware.org/blobdiff - UI/Scheduler/UIxCalInlineAptView.m
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1052 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / Scheduler / UIxCalInlineAptView.m
index 5f3c3243698ebbbc897557edbd02bd01681ae1c0..9fd641ac3d7722d2c1fd6d52b4327d1025b46191 100644 (file)
   if ((prio = [appointment valueForKey:@"priority"])) {
     [ms appendFormat:@" apt_prio%@", prio];
   }
-  email = [[[self context] activeUser] email];
+  email = [[context activeUser] primaryEmail];
   s = [appointment valueForKey:@"orgmail"];
   if ([s isNotNull])
     {
   return userIsInTheCard;
 }
 
-- (BOOL) titleShouldBeHidden
-{
-  BOOL shouldBeHidden;
-  SOGoUser *user;
-  SOGoAuthenticator *sAuth;
-
-  sAuth = [SOGoAuthenticator sharedSOGoAuthenticator];
-  user = [sAuth userInContext: context];
-
-  if ([[appointment objectForKey: @"owner"] isEqualToString: [user login]]
-      || ([[appointment objectForKey: @"classification"] intValue]
-          != iCalAccessConfidential))
-    shouldBeHidden = NO;
-  else
-    shouldBeHidden = ![self _userIsInTheCard: [user email]];
-
-  return shouldBeHidden;
-}
-
 @end