Merge pull request #27477 from ljain112/fix-in-create
fix: correct permissions for user cannot create doctypes
This commit is contained in:
commit
44b091552c
1 changed files with 0 additions and 1 deletions
|
|
@ -251,7 +251,6 @@ frappe.PermissionEngine = class PermissionEngine {
|
|||
|
||||
this.rights.forEach((r) => {
|
||||
if (!d.is_submittable && ["submit", "cancel", "amend"].includes(r)) return;
|
||||
if (d.in_create && ["create", "delete"].includes(r)) return;
|
||||
this.add_check(perm_container, d, r);
|
||||
|
||||
if (d.if_owner && r == "report") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue