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

Wrap subnav with authorization policy #1120

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

radical-ube
Copy link
Contributor

resolves #1103

This PR addresses the issue of leaked authorized info of a podcast. Previously, a user could still see the navbar of a podcast that they did not have authorization for, and therefore could view the title of the podcast seen in the podcast switcher partial. This PR wraps the subnav in a policy in order prevent access to users who do not have view access to the selected podcast. Because the subnav is used across many other views, this should be consistent any layout that utilizes the subnav, including the episodes and feeds views.

Copy link
Member

@kookster kookster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Copy link
Member

@kookster kookster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@radical-ube radical-ube merged commit 1fcc8dd into main Oct 9, 2024
3 checks passed
@radical-ube radical-ube deleted the fix/view_authorization_leaks branch October 9, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leaking unauthorized info
2 participants