* Add delete confirmation page
* Allow deleting location
* Add delete location button and update policy
* Add delete button to CYA
* Update location policy
* Do not display deleted locationa as an option
* Move delete button into the button group
* Add informative text for locations that have logs
* Refactor query
* CLDC-2478 Allow deleting scheme (#2286
An error occurred
)
* Add delete confirmation page
* Allow deleting scheme
* Add delete scheme button and update policy
* Add delete button to CYA
* Update scheme policy
* Do not display deleted schemes as an option
* Add informative text for schemesrbe that have logs
* Refactor query
* Update tests
* Add feature toggle
* Display active status is location/scheme deactivation is in more than 6 months
* Override existing location deactivation period with new deactivation
* Override existing scheme deactivation period with new deactivation
* add reactivate to policy
* Change status tag method
* Update instance double in test
* Update deactivates_in_a_long_time? method
* Uncoment a test
# Context
- https://digital.dclg.gov.uk/jira/browse/CLDC-1732
- data providers are given read-only able access to schemes and locations
# Changes
- introduce `pundit` policies to schemes and locations. the old scope mechanism has been removed
- apply policies at view level so hide write access based functionality from data providers