-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25812 from ankush/up_strict
fix!: Don't let users with write access to UP bypass UP
- Loading branch information
Showing
2 changed files
with
0 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -421,13 +421,6 @@ def test_strict_user_permissions(self): | |
clear_user_permissions_for_doctype("Salutation") | ||
clear_user_permissions_for_doctype("Contact") | ||
|
||
def test_user_permissions_not_applied_if_user_can_edit_user_permissions(self): | ||
add_user_permission("Blogger", "_Test Blogger 1", "[email protected]") | ||
|
||
# [email protected] has rights to create user permissions | ||
# so it should not matter if explicit user permissions are not set | ||
self.assertTrue(frappe.get_doc("Blogger", "_Test Blogger").has_permission("read")) | ||
|
||
def test_user_permission_is_not_applied_if_user_roles_does_not_have_permission(self): | ||
add_user_permission("Blog Post", "-test-blog-post-1", "[email protected]") | ||
frappe.set_user("[email protected]") | ||
|