mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 14:57:12 +00:00
Monotone-Parent: 3ed608f2d193596ff9ea26138010a888e87b0929
Monotone-Revision: c00890a3638719c75d4c3a2a1be8103137ce8223 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-01-22T21:54:59 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
3037de35a9
commit
5ad9041187
2 files changed
+17
-5
No files matched your search
@@ -752,21 +752,22 @@ static NSNumber *sharedYes = nil;
|
||||
|
||||
- (NSString *) _privacySqlString
|
||||
{
|
||||
NSString *privacySqlString, *login, *email;
|
||||
NSString *privacySqlString, *email, *login;
|
||||
SOGoUser *activeUser;
|
||||
|
||||
activeUser = [context activeUser];
|
||||
login = [activeUser login];
|
||||
|
||||
if ([login isEqualToString: owner])
|
||||
if ([[activeUser rolesForObject: self inContext: context]
|
||||
containsObject: SoRole_Owner])
|
||||
privacySqlString = @"";
|
||||
else if ([login isEqualToString: @"freebusy"])
|
||||
else if ([[activeUser login] isEqualToString: @"freebusy"])
|
||||
privacySqlString = @"and (c_isopaque = 1)";
|
||||
else
|
||||
{
|
||||
#warning we do not manage all the possible user emails
|
||||
email = [[activeUser primaryIdentity] objectForKey: @"email"];
|
||||
|
||||
login = [activeUser login];
|
||||
|
||||
privacySqlString
|
||||
= [NSString stringWithFormat:
|
||||
@"(%@(c_orgmail = '%@')"
|
||||
|
||||
Reference in new issue
Block a user