Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions invenio_oauthclient/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ def load_user_role_needs(identity):
if identity.id is None:
# no user is logged in
return
if not request:
# session is request-bound; nothing to load outside a request.
return

needs = set()

Expand Down
Loading