diff options
author | rowanbeentje <rowan@beent.je> | 2009-10-16 01:24:45 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-10-16 01:24:45 +0000 |
commit | c75dd33c1ccb4d64fa413357b9cdbfca36ee2f6a (patch) | |
tree | 83f3fa356109b4b6c0c70f6da4c12fb6da67555b /Source/SPUserManager.h | |
parent | b74377b6341d4b861b254ffcfb983d2cb27ec5b6 (diff) | |
download | sequelpro-c75dd33c1ccb4d64fa413357b9cdbfca36ee2f6a.tar.gz sequelpro-c75dd33c1ccb4d64fa413357b9cdbfca36ee2f6a.tar.bz2 sequelpro-c75dd33c1ccb4d64fa413357b9cdbfca36ee2f6a.zip |
Significant User Management improvements:
- When reading data from the server, correctly map values to the SPUser object values to prevent data loss
- Ask server for priv support; disable unsupported privs in the interface, and only try to grant/revoke supported privs. Fixes errors saving users on MySQL < 6.
- Make "check all" and "uncheck all" buttons functional
- Add checkboxes for MySQL 6 privs as we already map the data for them
- Fix double retain of priv mapping dictionary
- Error dialogs stay on screen for longer than half a second
- New hosts are now selected for editing when added
This addresses some of the issues in Issue #349.
Diffstat (limited to 'Source/SPUserManager.h')
-rw-r--r-- | Source/SPUserManager.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/SPUserManager.h b/Source/SPUserManager.h index 323f2fe7..d673226a 100644 --- a/Source/SPUserManager.h +++ b/Source/SPUserManager.h @@ -31,7 +31,7 @@ NSPersistentStoreCoordinator *persistentStoreCoordinator; NSManagedObjectModel *managedObjectModel; NSManagedObjectContext *managedObjectContext; - NSDictionary *privColumnsMODict; + NSDictionary *privColumnToGrantMap; BOOL isInitializing; @@ -40,6 +40,7 @@ IBOutlet NSOutlineView* outlineView; IBOutlet NSTabView *tabView; IBOutlet NSTreeController *treeController; + IBOutlet NSMutableDictionary *privsSupportedByServer; } - (NSPersistentStoreCoordinator *)persistentStoreCoordinator; @@ -56,11 +57,14 @@ - (IBAction)addUser:(id)sender; - (IBAction)removeUser:(id)sender; - (IBAction)addHost:(id)sender; +- (void)editNewHost; - (IBAction)removeHost:(id)sender; // General - (IBAction)doCancel:(id)sender; - (IBAction)doApply:(id)sender; +- (IBAction)checkAllPrivileges:(id)sender; +- (IBAction)uncheckAllPrivileges:(id)sender; // Core Data Notifications - (void)contextDidSave:(NSNotification *)notification; |