-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transfer groundControl (and admin panel) from staff to admin route (#…
…1180) * Create a new staff scope * Move Admin Panel requests into admin scope * Change appropriate routes into admin scope * Find-replace galore * Fix linting * Linting does not work :( * Revert "Find-replace galore" This reverts commit e77aa05. * Revert "Change appropriate routes into admin scope" This reverts commit 18dc689. * Revert "Create a new staff scope" This reverts commit 6b7e54e. * Move dangerous routes into a new scope * Fix linting * Linting works in mysterious ways * One more formatting change * Swap order of all-staff and admin-only routes This swap prevents the all-staff route, "/grading/:submissionid/:questionid", from pattern matching and overshadowing the admin-only route "/grading/:assessmentid/publish_all_grades". Thankfully, no admin routes overshadow staff routes, so a quick fix can be done here. * Update error message for grading routes * Update error messages for users * Add test cases for assets for staff Create test cases to indicate that non-admin staff can only read assets, but not create, modify, or delete them. * Update test auth to admin for assets * Update and add tests for course config routes Updates positive test auth from staff to admin, adds negative tests to ensure that non-admin staff are unable to read, update, create, or delete course configs. * Update and add tests for assessment-level routes Update the modification / deletion test auth from staff to admin, and create tests to ensure that non-admin staff are not able to delete / unpublish them * Fix sourcecast error * Revert "Fix sourcecast error" This reverts commit 831ca60. * Transfer asset routes to admin * Revert accidental formatting changes
- Loading branch information
Showing
7 changed files
with
251 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.