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

Fix DefaultCustomer permission set giving guests access to admin #161

Merged
merged 3 commits into from
Oct 21, 2020

Conversation

aldesantis
Copy link
Member

Fixes an issue with the DefaultCustomer permission set, which allowed guest users to access the subscription admin page (although they wouldn't have access to any subscriptions).

@aldesantis aldesantis force-pushed the aldesantis/fix-default-customer-permissions branch from 3906e79 to 2d0b5bf Compare October 21, 2020 09:43
The DefaultCustomer permission set would allow guests to see the
subscriptions list (although they wouldn't be able to see any subscriptions).
CanCan requires `authorize!` calls to specify the name of the action
as a symbol, if that's how it was specified in the ability.
@aldesantis aldesantis self-assigned this Oct 21, 2020
@aldesantis aldesantis force-pushed the aldesantis/fix-default-customer-permissions branch from 2d0b5bf to 9ac1fec Compare October 21, 2020 09:50
@aldesantis aldesantis merged commit db9913f into master Oct 21, 2020
@aldesantis aldesantis deleted the aldesantis/fix-default-customer-permissions branch October 21, 2020 10:07
@aldesantis aldesantis added the bug Describes or fixes a bug. label Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Describes or fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants