WING-NUS / SSID

Student Submission Integrity Diagnosis
18 stars 23 forks source link

✨Allow API keys of admin to access all courses #363

Closed sibinhho99 closed 11 months ago

sibinhho99 commented 1 year ago

Cc:

Hi

Pain

Currently users are only allowed to access their own resources (courses, assignments,...). API keys associated with admin users are not allowed to access all resources (courses, and assignments, ...).

In the web interface, the admin can see all courses.

Suggested Solution

API keys associated with an admin users should be authorized to access all resources

Allow admins to bypass authorization in https://github.com/WING-NUS/SSID/blob/master/lib/api_keys_handler.rb

Tasks

Acceptance Criteria

More Information

From @huyuxin0429

Screenshots

Thanks!