Fix View privilege management. Fixes #1531

1. Fixed update privileges for views and materialized views.
2. Apart from this fixed wrong sql for privilege update.
3. Fixed: Error message was not got cleared even after removing entry with error on privilege tab.
This commit is contained in:
Harshal Dhumal
2016-10-10 09:42:22 +01:00
committed by Dave Page
parent 5ac2cceac7
commit 713c692ddd
14 changed files with 192 additions and 138 deletions

View File

@@ -932,6 +932,11 @@ function(_, pgAdmin, $, Backbone) {
if (!this.trackChanges)
return true;
/* Once model is removed from collection clear its errorModel as it's no longer relevant
* for us. Otherwise it creates problem in 'clearInvalidSessionIfModelValid' function.
*/
obj.errorModel.clear();
var self = this,
invalidModels = self.sessAttrs['invalid'],
copy = _.clone(obj),
@@ -994,7 +999,7 @@ function(_, pgAdmin, $, Backbone) {
}
else {
// Hmm..
// How come - you have been assinged in invalid list.
// How come - you have been assigned in invalid list.
// I will make a list of it, and remove it later.
validModels.push(key);
}