Skip to content

Commit

Permalink
Pull resources from auth_mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
k-burt-uch committed Nov 16, 2023
1 parent 93195da commit 71c8562
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fence/resources/user/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ def get_user_info(current_session, username):

if hasattr(flask.current_app, "arborist"):
try:
resources = flask.current_app.arborist.list_resources_for_user(
user.username
)
auth_mapping = flask.current_app.arborist.auth_mapping(user.username)
resources = auth_mapping.keys()
except ArboristError as exc:
logger.error(
f"request to arborist for user's resources failed; going to list empty. Error: {exc}"
Expand Down

0 comments on commit 71c8562

Please sign in to comment.