bcgov / SIMS

Student Information Management System. Post-Secondary Student Financial Aid System
Apache License 2.0
25 stars 14 forks source link

Bug - restriction view when access limited #3943

Open Joshua-Lakusta opened 1 week ago

Joshua-Lakusta commented 1 week ago

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:

  1. Go to a student with restrictions as a ministry user with no restriction edit access.
  2. Click on 'View' for any restriction
  3. Un-closable modal reached.
image.png