Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Culminating chunk of a series of changes that allows us to re-open user registration.
Also serves to track the state of all related tasks and changesets.
What
Removes the
devise
override we implemented to block user registration.Prerequisite changesets and tasks
main
: Adding Pundit, applies to User and Person models #514AdminController
actions: Make admin controllers restful #836UserContext
: Introduce pundit user context #838Context
model: Introduce context #844?admin=false
logic intoApplicationPolicy
: Admin param #849NavBar
buttons based on user roles: Show/hide buttons on NavBar based on user role #850AnnouncementsController
Secure and consolidate announcements endpoints #845CommunityResourcesController
Secure and consolidate community_resource endpoints #848ContributionController#respond
->show
, and combine the views, remove respond button from everywhere Reworking contributions show respond #851 (reviewed)ContributionsController
and authorize it Make contributions restful and authorized #858Pre-Merge Checklist
Testing and Security
Once all the prerequisites are complete, we will need a full manual test of the whole site.
Next Steps
acting_user
: needs review and discussionOutstanding Questions, Concerns and Other Notes