Skip to content

Commit

Permalink
Reduce permissions in the example config (nebari-dev#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech authored May 20, 2024
1 parent 759363b commit 1650006
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions jhub_apps/service/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ async def get_server(user: User = Depends(get_current_user), server_name=None):
)
else:
return {
"shared_apps": get_shared_servers(
user_servers=user_servers, current_hub_user=hub_user
),
"shared_apps": get_shared_servers(current_hub_user=hub_user),
"user_apps": list(user_servers.values()),
}

Expand Down
2 changes: 1 addition & 1 deletion jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ def service_for_jhub_apps(name, url):
"read:users:name",
# Need scope 'read:groups:name' to share with groups by name
"read:groups:name",
] + ["shares"] if is_jupyterhub_5() else [])
] + ["shares!user"] if is_jupyterhub_5() else [])
break

0 comments on commit 1650006

Please sign in to comment.