Skip to content

Commit

Permalink
Fixed admin interface and small change to users_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmstr committed Nov 5, 2024
1 parent b3d11de commit de54abc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions server/src/uds/REST/methods/users_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_service_pools_for_groups(


class Users(DetailHandler):
custom_methods = ['servicesPools', 'userServices', 'cleanRelated', 'addToGroup']
custom_methods = ['servicesPools', 'userServices', 'clean_related', 'addToGroup']

def get_items(self, parent: 'Model', item: typing.Optional[str]) -> typing.Any:
parent = ensure.is_instance(parent, Authenticator)
Expand Down Expand Up @@ -321,7 +321,7 @@ def userServices(self, parent: 'Authenticator', item: str) -> list[dict[str, typ

return res

def cleanRelated(self, parent: 'Authenticator', item: str) -> dict[str, str]:
def clean_related(self, parent: 'Authenticator', item: str) -> dict[str, str]:
uuid = process_uuid(item)
user = parent.users.get(uuid=process_uuid(uuid))
user.clean_related_data()
Expand Down
Loading

0 comments on commit de54abc

Please sign in to comment.