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

Renewal start page and user permissions #11

Merged
merged 12 commits into from
Dec 20, 2017

Conversation

irisfaraway
Copy link
Member

@irisfaraway irisfaraway commented Dec 15, 2017

https://eaflood.atlassian.net/browse/WC-89

Before users begin the renewal process, we should set their expectations for how long the renewal lasts and what it will cost.

We should also make sure they actually have permission to renew the registration – users should not be able to modify registrations which don't belong to them. I've implemented CanCanCan to handle this, which might be overkill for now but will come in handy once we have to handle admin users as well.

This PR also adds some custom error pages as there were several instances where it didn't make sense to display the errors on the page (as with validations).

@irisfaraway irisfaraway self-assigned this Dec 15, 2017
@irisfaraway irisfaraway force-pushed the feature/start-page-user-permissions branch 2 times, most recently from 4d4e438 to afcd139 Compare December 19, 2017 12:04
https://eaflood.atlassian.net/browse/WC-89

Before users begin the renewal process, we should set their expections for how long the renewal lasts and what it will cost.

We should also make sure they actually have permission to renew the registration - users should not be able to modify registrations which don't belong to them.
Any requests where a user's email doesn't match the account_email for a registration are redirected to an error page.

I also switched to the custom error pages for invalid reg_identifiers.

This resulted in a lot of test updates.
@irisfaraway irisfaraway force-pushed the feature/start-page-user-permissions branch from 2fb7537 to c5ea7d6 Compare December 20, 2017 08:51
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

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

LGTM :shipit: !

@irisfaraway irisfaraway merged commit 83440d7 into master Dec 20, 2017
@irisfaraway irisfaraway deleted the feature/start-page-user-permissions branch December 20, 2017 09:16
@irisfaraway irisfaraway added the enhancement New feature or request label Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants