aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPUserManager.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m
index 5a2e779a..09d26f1f 100644
--- a/Source/SPUserManager.m
+++ b/Source/SPUserManager.m
@@ -254,10 +254,9 @@
inManagedObjectContext:moc];
NSArray *props = [privEntityDescription attributeKeys];
[availablePrivs removeAllObjects];
-
for (NSString *prop in props)
{
- if ([prop hasSuffix:@"_priv"])
+ if ([prop hasSuffix:@"_priv"] && [[self.privsSupportedByServer objectForKey:prop] boolValue])
{
NSString *displayName = [[prop stringByReplacingOccurrencesOfString:@"_priv"
withString:@""] replaceUnderscoreWithSpace];