On this page

Roles and access

What students, teachers, and admins can do, and how the server enforces course access.

Access is decided by the database, not by the screen. The interface hides what you cannot use, and the service refuses it even if you ask directly.

Roles

RoleSeesCan uploadCan ask
StudentCourses they are enrolled inNoYes, within those courses
TeacherCourses they teachYes, for those coursesYes
AdminAll coursesNoFor support and review

How access is checked

Every request that names a course goes through the same check:

  1. The caller's identity is resolved to a person row by email.
  2. The person's role and course list are read from the database.
  3. A teacher must own the course; a student must be enrolled; an admin is unrestricted.
  4. Anything else is refused with 403.
GET /v1/documents?course_id=course-csb321   as a student not enrolled
→ 403 {"detail": "You do not have access to this course"}

The same rule applies to chat: asking a question scoped to another course is refused before retrieval runs.

What this prevents

  • Editing a URL or request body to read another course's files.
  • A student uploading material into a course.
  • A teacher uploading into a course they do not teach.
  • An unknown account reading anything at all.

Filtering the list in the browser would look the same in the UI but would protect nothing. The check has to happen where the data lives.

When access looks wrong

SymptomLikely causeFix
Course missing from the selectorNo enrollment row / not the owning teacherAdd the enrollment or reassign the course
Upload control missingAccount role is not teacherSign in with a teacher account
403 on a course you expectEnrollment exists for a different accountConfirm the signed-in email
Everything empty after sign-inSession belongs to an old or unknown accountSign out and sign in again

Guide feedback

Did this guide get you unstuck?

Tell us whether this guide answered your question.

MFU AI Knowledge Studio · practical guidance for learning, teaching, and platform operations