pupilfirst / pupilfirst

A learning management system (LMS) that lets you run an asynchronous online school, where learning is achieved through focused tasks, directed feedback, an iterative workflow, and community interaction.

Home Page:https://www.pupilfirst.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Admins and coaches can attempt to reject a submission even when the rest of the UI indicates a lock

harigopal opened this issue · comments

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:

  1. View a submission as an admin viewing a submission, but without the ability to review it.
  2. Select No to Is this submission acceptable?.
  3. Click the Reject Submission button
  4. 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).