Skip to content

Commit

Permalink
[Fixes #12512] Expose publish, approval and feature permissions insid…
Browse files Browse the repository at this point in the history
…e PermissionLevelMixin
  • Loading branch information
mattiagiupponi committed Aug 21, 2024
1 parent 656dee1 commit 030638e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geonode/security/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,7 @@ def test_set_compact_permissions(self):
"view_resourcebase",
"download_resourcebase",
"change_resourcebase_metadata",
"approve_resourcebase"
],
self.anonymous_user: ["view_resourcebase"],
},
Expand Down Expand Up @@ -2148,6 +2149,7 @@ def test_permissions_on_user_role_promotion_to_manager(self):
"view_resourcebase",
"publish_resourcebase",
"change_resourcebase_permissions",
"approve_resourcebase"
],
}
try:
Expand Down Expand Up @@ -2268,7 +2270,7 @@ def test_permissions_on_user_role_promote_to_manager_only_RESOURCE_PUBLISHING_ac
"view_resourcebase",
"publish_resourcebase",
"change_resourcebase_permissions",
"approve_resourcebase", # TODO check if he can approve
"approve_resourcebase",
],
}
for authorized_subject, expected_perms in expected.items():
Expand Down

0 comments on commit 030638e

Please sign in to comment.