Skip to content

Commit

Permalink
Add TODO comment for user and group management API integration in ext…
Browse files Browse the repository at this point in the history
…ra configs
  • Loading branch information
Harshg999 committed Feb 4, 2025
1 parent 8534c05 commit 497fbbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/filebrowser/src/filebrowser/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def _get_extra_configs(fs, request):
is_hdfs_superuser = _is_hdfs_superuser(request)
extra_configs = {
'is_trash_enabled': is_hdfs_trash_enabled(),
# TODO: Check if any of the below fields should be part of new Hue user and group management APIs
'is_hdfs_superuser': is_hdfs_superuser,
'groups': [str(x) for x in Group.objects.values_list('name', flat=True)] if is_hdfs_superuser else [],
'users': [str(x) for x in User.objects.values_list('username', flat=True)] if is_hdfs_superuser else [],
Expand Down

0 comments on commit 497fbbf

Please sign in to comment.