Monotone-Parent: e41f59857cafb636d38404bf829a9113c529ffd6
Monotone-Revision: 9206c6ee4874fb4fa96b7e7571eb10c5832e1f29 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-17T15:19:33 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
1db7523e11
commit
fd86551b7c
|
@ -462,7 +462,8 @@ static NSArray *reducedReportQueryFields = nil;
|
||||||
[self initializeQuickTablesAclsInContext: context];
|
[self initializeQuickTablesAclsInContext: context];
|
||||||
grantedClasses = [NSMutableArray arrayWithCapacity: 3];
|
grantedClasses = [NSMutableArray arrayWithCapacity: 3];
|
||||||
deniedClasses = [NSMutableArray arrayWithCapacity: 3];
|
deniedClasses = [NSMutableArray arrayWithCapacity: 3];
|
||||||
for (currentClass = 0; currentClass < iCalAccessClassCount; currentClass++)
|
for (currentClass = 0;
|
||||||
|
currentClass < iCalAccessClassCount; currentClass++)
|
||||||
{
|
{
|
||||||
classNumber = [NSNumber numberWithInt: currentClass];
|
classNumber = [NSNumber numberWithInt: currentClass];
|
||||||
if (userCanAccessObjectsClassifiedAs[currentClass])
|
if (userCanAccessObjectsClassifiedAs[currentClass])
|
||||||
|
@ -477,10 +478,14 @@ static NSArray *reducedReportQueryFields = nil;
|
||||||
privacySqlString
|
privacySqlString
|
||||||
= [NSString stringWithFormat: @"c_classification != %@",
|
= [NSString stringWithFormat: @"c_classification != %@",
|
||||||
[deniedClasses objectAtIndex: 0]];
|
[deniedClasses objectAtIndex: 0]];
|
||||||
else
|
else if (grantedCount == 1)
|
||||||
privacySqlString
|
privacySqlString
|
||||||
= [NSString stringWithFormat: @"c_classification == %@",
|
= [NSString stringWithFormat: @"c_classification == %@",
|
||||||
[grantedClasses objectAtIndex: 0]];
|
[grantedClasses objectAtIndex: 0]];
|
||||||
|
else
|
||||||
|
/* We prevent any event/task from being listed. There must be a better
|
||||||
|
way... */
|
||||||
|
privacySqlString = @"0 == 1";
|
||||||
}
|
}
|
||||||
|
|
||||||
return privacySqlString;
|
return privacySqlString;
|
||||||
|
|
Loading…
Reference in a new issue