Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

views: fix boolean logic for checking remote app visibility #335

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion invenio_oauthclient/views/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def auto_redirect_login(*args, **kwargs):
visible_remote_apps = [
remote_app
for remote_app in remote_apps
if remote_app_configs.get(remote_app, {}).get("hide", False)
if not remote_app_configs.get(remote_app, {}).get("hide", False)
]

if would_redirect and len(visible_remote_apps) == 1:
Expand Down