aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormltownsend <mltownsend@gmail.com>2010-02-03 22:23:42 +0000
committermltownsend <mltownsend@gmail.com>2010-02-03 22:23:42 +0000
commit7b7e81cfdda087a27836cb056a7b7f1fbabe1d50 (patch)
treec1acfd47840ff1444f3fba1210e876b436af7259
parent7567724b1e66bc394bf36c7d7b153dd048018f03 (diff)
downloadsequelpro-7b7e81cfdda087a27836cb056a7b7f1fbabe1d50.tar.gz
sequelpro-7b7e81cfdda087a27836cb056a7b7f1fbabe1d50.tar.bz2
sequelpro-7b7e81cfdda087a27836cb056a7b7f1fbabe1d50.zip
Patch to filter available privs by what the server supports
-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];