Skip to content

Commit

Permalink
[Fixes #12713] fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Feb 26, 2025
1 parent cf5d332 commit 719dd72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions geonode/security/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ def fixup_perms(self, instance, payload, include_virtual=True, *args, **kwargs):
payload = handler.fixup_perms(instance, payload, include_virtual=include_virtual, *args, **kwargs)
return payload

def get_perms(self, instance, user=None, include_virtual=True, include_alias=False, *args, **kwargs):
def get_perms(self, instance, user=None, include_virtual=True, *args, **kwargs):
"""
Return the payload with the permissions from the handlers.
The permissions payload can be edited by each permissions handler.
For example before return the payload, we can virtually remove perms
to the resource
Include_alias -> If true returns the permissions including the add_resorucebase if the user has
"""
if user:
payload = {"users": {user: instance.get_user_perms(user)}, "groups": {}}
Expand Down

0 comments on commit 719dd72

Please sign in to comment.