-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Use case: - User has "if owner" perm - Doc isn't created - We skip doc perm check because doc doesn't exist - We check if user has write perm to doctype, which isn't available because it's only "if owner" Fix: We can avoid perm check entirely here, files are only re-attached if doc saves successfully which implies that reference doc was indeed saved after perm check. (cherry picked from commit 3c2bf77) Co-authored-by: Ankush Menat <ankush@frappe.io>
- Loading branch information
1 parent
f608498
commit 334d353
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters