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.
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: