From c066136a06dc0cb63deb3001c4c8db5cdda41f9d Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Mon, 28 Jan 2013 08:34:40 -0500 Subject: [PATCH] Reverted code that was causing issues with groups (#2090) --- SoObjects/SOGo/SOGoUserManager.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SoObjects/SOGo/SOGoUserManager.m b/SoObjects/SOGo/SOGoUserManager.m index a583164f4..28fec2a21 100644 --- a/SoObjects/SOGo/SOGoUserManager.m +++ b/SoObjects/SOGo/SOGoUserManager.m @@ -790,12 +790,9 @@ static Class NSNullK; NSString *aUID, *cacheUid, *jsonUser; BOOL newUser; - /* TODO: we need to perform a better validity check on "uid" */ - if ([uid isEqualToString: @"anonymous"]) currentUser = [self _contactInfosForAnonymous]; - else if ([uid length] > 0 - && [uid rangeOfString: @" "].location == NSNotFound) + else if ([uid length] > 0) { // Remove the "@" prefix used to identified groups in the ACL tables. aUID = [uid hasPrefix: @"@"] ? [uid substringFromIndex: 1] : uid;