Admins and coaches can attempt to reject a submission even when the rest of the UI indicates a lock
harigopal opened this issue · comments
Hari Gopal commented
Describe the bug
Related to the recently merged #1318.
It's possible to access the Reject submission button even when the rest of the controls on the submission are disabled (when the submission is unavailable for review).
To Reproduce
Steps to reproduce the behavior:
- View a submission as an admin viewing a submission, but without the ability to review it.
- Select No to Is this submission acceptable?.
- Click the Reject Submission button
- The request sent to the GraphQL API show an authorization failure notification.
Expected behavior
Controls related to rejecting a submission should be disabled when the submission is unavailable for review (for whatever reason).