You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
When you view restriction you get trapped and cant close the view when you do not have access to update the restriction.
Expected Behaviour
The 'Close' button is not disabled for all users. Users without restriction edit access should be able to view it, not edit it and then close the modal without refreshing.
Actual Behaviour
The 'Close' button is disabled for users without the restriction edit access. They need to refresh the page in order to get out of the modal.
** Steps To Reproduce**
Steps to reproduce the behaviour:
Go to a student with restrictions as a ministry user with no restriction edit access.
Click on 'View' for any restriction
Un-closable modal reached.
The text was updated successfully, but these errors were encountered:
- Removed the check-role-permission decorator to allow ministry users
without designated roles to close the modal as per AC
- The 'Close' button is not disabled for all users. Users without
restriction edit access should be able to view it, not edit it and then
close the modal without refreshing.
Screenshot
![image](https://github.com/user-attachments/assets/455e12e4-8c1d-45a6-82c3-7308a3091275)
Describe the Bug
When you view restriction you get trapped and cant close the view when you do not have access to update the restriction.
Expected Behaviour
The 'Close' button is not disabled for all users. Users without restriction edit access should be able to view it, not edit it and then close the modal without refreshing.
Actual Behaviour
The 'Close' button is disabled for users without the restriction edit access. They need to refresh the page in order to get out of the modal.
** Steps To Reproduce**
Steps to reproduce the behaviour:
The text was updated successfully, but these errors were encountered: