rubyforgood/voices-of-consent

Add AbuseTypes CRUD

Open

#275 opened on Oct 10, 2019

View on GitHub
 (5 comments) (1 reaction) (0 assignees)Ruby (80 forks)auto 404
Priority: Lowhelp wanted

Repository metrics

Stars
 (40 stars)
PR merge metrics
 (PR metrics pending)

Description

  • We have the db, but need to add CRUD views so Admin user can add/edit/delete abuse_types

  • AbuseType policy should require a new Permission constant, called SYSTEM_SETUP, for all AbuseType actions, with the following exception:

  • AbuseTypesController needs to still service the json call (but change it to a different endpoint than the index, to help with the permission policy) from the /requesters/new form. This endpoint should not require ANY permissions, bc it'll get called from an unauthenticated user. So, it needs to get changed on the React side, added to the routes, and added to the AbuseTypesController.

Contributor guide