mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix an issue where the save button was not getting enable when user revoke ADMIN option from Role privileges.
Issue: validation callback was missing in the control model. Fixes #1302
This commit is contained in:
parent
237f93591f
commit
1a84c35628
@ -709,7 +709,7 @@ rolmembership:{
|
||||
_("Could not generate reversed engineered Query for the role.")
|
||||
)
|
||||
|
||||
return ajax_response(response=res)
|
||||
return ajax_response(response=res.strip('\n'))
|
||||
|
||||
@check_precondition(action='create')
|
||||
@validate_request
|
||||
@ -823,7 +823,7 @@ rolmembership:{
|
||||
data=self.request,
|
||||
dummy=True,
|
||||
conn=self.conn
|
||||
)
|
||||
).strip('\n')
|
||||
)
|
||||
else:
|
||||
return make_json_response(
|
||||
@ -837,7 +837,7 @@ rolmembership:{
|
||||
rolCatUpdate=self.rolCatUpdate,
|
||||
rolSuper=self.rolSuper,
|
||||
alterKeys=self.alterKeys
|
||||
)
|
||||
).strip('\n')
|
||||
)
|
||||
|
||||
@check_precondition()
|
||||
|
@ -465,6 +465,9 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backform) {
|
||||
defaults: {
|
||||
role: undefined,
|
||||
admin: false
|
||||
},
|
||||
validate: function() {
|
||||
return null;
|
||||
}
|
||||
}),
|
||||
filter: function(d) {
|
||||
|
Loading…
Reference in New Issue
Block a user