mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
committed by
Dave Page
parent
5ac2cceac7
commit
713c692ddd
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user