Skip to content

Commit

Permalink
#3943 - Bug - restriction view when access limited (#3982)
Browse files Browse the repository at this point in the history
- 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)
  • Loading branch information
lewischen-aot authored Nov 22, 2024
1 parent 9de4f64 commit d7ecfd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
secondaryLabel="Cancel"
@primaryClick="allowUserToEdit ? submit() : cancel()"
@secondaryClick="cancel"
:disablePrimaryButton="notAllowed"
:disablePrimaryButton="allowUserToEdit && notAllowed"
:showSecondaryButton="allowUserToEdit"
/>
</template>
Expand Down

0 comments on commit d7ecfd0

Please sign in to comment.