diff options
author | mltownsend <mltownsend@gmail.com> | 2010-02-03 22:23:42 +0000 |
---|---|---|
committer | mltownsend <mltownsend@gmail.com> | 2010-02-03 22:23:42 +0000 |
commit | 7b7e81cfdda087a27836cb056a7b7f1fbabe1d50 (patch) | |
tree | c1acfd47840ff1444f3fba1210e876b436af7259 /Source | |
parent | 7567724b1e66bc394bf36c7d7b153dd048018f03 (diff) | |
download | sequelpro-7b7e81cfdda087a27836cb056a7b7f1fbabe1d50.tar.gz sequelpro-7b7e81cfdda087a27836cb056a7b7f1fbabe1d50.tar.bz2 sequelpro-7b7e81cfdda087a27836cb056a7b7f1fbabe1d50.zip |
Patch to filter available privs by what the server supports
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPUserManager.m | 3 |
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]; |