Skip to content

Examination: let acadadmin submit grades for any course#1932

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

Examination: let acadadmin submit grades for any course#1932
vikrantwiz02 merged 1 commit into
FusionIIIT:prod/acad-reactfrom
vikrantwiz02:prod/acad-react

Conversation

@vikrantwiz02

Copy link
Copy Markdown
Member

This pull request updates the logic for course querying and instructor-ownership checks in the post method of FusionIIIT/applications/examination/api/views.py. The changes improve role-based access, ensuring that academic administrators (acadadmin) can view and submit for all courses, while instructors are limited to their assigned courses.

Role-based course querying:

  • Academic administrators now retrieve all courses registered for the session and semester type, instead of being filtered by instructor.
  • Instructors continue to see only their assigned courses for the relevant academic year and semester.

Instructor-ownership check:

  • The instructor-ownership check now allows academic administrators to submit for any course, while instructors are restricted to their own courses.

- SubmitGradesProfAPI: acadadmin's course list is registration-based
  (session + semester_type) instead of gated by CourseInstructor, so
  courses with no assigned faculty (e.g. project/BTP courses) appear
- UploadGradesProfAPI: acadadmin bypasses the instructor-ownership check;
  faculty remain scoped to courses they are assigned to teach
@vikrantwiz02
vikrantwiz02 merged commit 4d9223c 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