Some actions are only permitted for certain users. In order to make sure unauthorised users cannot perform restricted actions we need to analyse the policy business rules for the Space model.
Technical tasks
[x] Create policy class
[x] Create unit test that asserts the current happy flows
Automated testing
Unit tests are the best option to validate the workings of all the policy actions. They will make sure all actions are correctly according to the business requirements.
Description
Some actions are only permitted for certain users. In order to make sure unauthorised users cannot perform restricted actions we need to analyse the policy business rules for the
Space
model.Technical tasks
Automated testing
Unit tests are the best option to validate the workings of all the policy actions. They will make sure all actions are correctly according to the business requirements.