fix(Permission Manager): Update client-side permission data (#15945)
On updating access from Permission Manager. Permissions are not updated till we do a hard refresh. 
This commit is contained in:
parent
8bae45823c
commit
6cbede451d
1 changed files with 2 additions and 1 deletions
|
|
@ -347,6 +347,7 @@ frappe.PermissionEngine = class PermissionEngine {
|
|||
}
|
||||
|
||||
add_check_events() {
|
||||
let me = this;
|
||||
this.body.on("click", ".show-user-permissions", () => {
|
||||
frappe.route_options = { allow: this.get_doctype() || "" };
|
||||
frappe.set_route('List', 'User Permission');
|
||||
|
|
@ -373,7 +374,7 @@ frappe.PermissionEngine = class PermissionEngine {
|
|||
// exception: reverse
|
||||
chk.prop("checked", !chk.prop("checked"));
|
||||
} else {
|
||||
this.get_perm(args.role)[args.ptype] = args.value;
|
||||
me.get_perm(args.role)[args.ptype] = args.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue