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

MBS-9353: Fix RequireAuth attributes for user profile and collection #536

Merged
merged 3 commits into from Sep 6, 2017

Conversation

yvanzo
Copy link
Contributor

@yvanzo yvanzo commented Aug 21, 2017

MBS-9353: Do not show collections or user profiles to people not logged in

Set RequireAuth attribute to every subroutine of Collection & User rather than base subroutine.

This reverts commit 9ff7825.

Attribute 'RequireAuth' of 'base' subroutine is not inherited by
other subroutines which are chained to 'load' rather than 'base'.

Explicit 'RequireAuth' attribute per subroutine to be added next.
@@ -465,7 +465,7 @@ sub tag : Chained('load') PathPart('tag') Args(1)
);
}

sub privileged : Path('/privileged')
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need/ought to RequireAuth for /privileged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was completely unnecessary and is reverted in 69d3c67

@yvanzo yvanzo merged commit c1486b2 into metabrainz:master Sep 6, 2017
@yvanzo yvanzo deleted the mbs-9353-auth-user-profile branch July 26, 2018 16: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
2 participants