[fix] If flags.ignore_share_permission is passed, don't check for share permission
This commit is contained in:
parent
7e6a2ca256
commit
ffc022b54c
1 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,8 @@ def add(doctype, name, user=None, read=1, write=0, share=0, everyone=0, flags=No
|
|||
if not user:
|
||||
user = frappe.session.user
|
||||
|
||||
check_share_permission(doctype, name)
|
||||
if not (flags or {}).get("ignore_share_permission"):
|
||||
check_share_permission(doctype, name)
|
||||
|
||||
share_name = get_share_name(doctype, name, user, everyone)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue