fix: apply rights filter to custom_rights in permission manager (#37927)
This commit is contained in:
parent
1d07cee93d
commit
79bebf726f
1 changed files with 1 additions and 1 deletions
|
|
@ -139,8 +139,8 @@ frappe.PermissionEngine = class PermissionEngine {
|
|||
data.message.forEach((d) => {
|
||||
let custom_rights = this.options.doctype_ptype_map[doctype] || [];
|
||||
d.rights = this.rights
|
||||
.filter((r) => d[r])
|
||||
.concat(custom_rights)
|
||||
.filter((r) => d[r])
|
||||
.map((r) => {
|
||||
return __(toTitle(frappe.unscrub(r)));
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue