fix: show right permission for user cannot create doctypes (#24027)
This commit is contained in:
parent
d423d2ace5
commit
bdc495f5d1
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ frappe.PermissionEngine = class PermissionEngine {
|
|||
|
||||
this.rights.forEach((r) => {
|
||||
if (!d.is_submittable && ["submit", "cancel", "amend"].includes(r)) return;
|
||||
if (d.in_create && ["create", "write", "delete"].includes(r)) return;
|
||||
if (d.in_create && ["create", "delete"].includes(r)) return;
|
||||
this.add_check(perm_container, d, r);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue