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

Only display user's registrations in temp listing page #151

Merged
merged 5 commits into from
May 1, 2018

Conversation

irisfaraway
Copy link
Member

@irisfaraway irisfaraway commented May 1, 2018

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

For testing purposes only, we have a page which lists all registrations in the database and lets users start the renewal process. We should limit this to just showing registrations belonging to the logged-in user account.

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

For testing purposes only, we have a page which lists all registrations in the database and lets users start the renewal process. We should limit this to just showing registrations belonging to the logged-in user account.
Tweak users' abilities in CanCanCan so registrations are only visible if the account email matches. This stops other users' registrations from being listed in the temp page.
@irisfaraway irisfaraway self-assigned this May 1, 2018
We want to be able to seed multiple users, so rather than cluttering up the seed script further, just add them all to a JSON file instead.

Currently we only read the email from JSON and then provide the same password based on an env var or a default.
Minor copy changes to make this a bit clearer for testing, plus a nice big green 'RENEW' button.
@irisfaraway irisfaraway merged commit 2017b36 into master May 1, 2018
@irisfaraway irisfaraway deleted the feature/only-list-users-registrations branch May 1, 2018 09:43
@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
Development

Successfully merging this pull request may close these issues.

2 participants