Skip to content

Examination: allow acadadmin to submit and upload grades#1931

Merged
vikrantwiz02 merged 1 commit into
FusionIIIT:prod/acad-reactfrom
vikrantwiz02:prod/acad-react
Jul 18, 2026
Merged

Examination: allow acadadmin to submit and upload grades#1931
vikrantwiz02 merged 1 commit into
FusionIIIT:prod/acad-reactfrom
vikrantwiz02:prod/acad-react

Conversation

@vikrantwiz02

Copy link
Copy Markdown
Member

This pull request updates access control logic in the FusionIIIT/applications/examination/api/views.py file to allow users with the acadadmin role to access certain endpoints and data, in addition to faculty roles. It also refactors how instructor filtering is handled, ensuring acadadmin users can access all relevant courses, while other users are limited to their own.

Access Control Updates:

  • Added the acadadmin role to the allowed roles in access checks, permitting users with this role to access endpoints previously restricted to faculty roles. [1] [2]

Data Filtering Logic:

  • Refactored course filtering so that acadadmin users can access all courses for a given year and semester, while other users are restricted to courses where they are the instructor. This was achieved by adjusting the filter construction based on the user's role.

- Add acadadmin to SubmitGradesProfAPI and UploadGradesProfAPI role gates
- acadadmin sees every course offered in the selected term (admin-wide
  listing); faculty stay scoped to the courses they teach
@vikrantwiz02
vikrantwiz02 merged commit fa277cc into FusionIIIT:prod/acad-react Jul 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant