Skip to content

How to make resources from repository accessible in exams/homeworks #891

Answered by inducer
luspi asked this question in Q&A
Discussion options

You must be logged in to vote

You need a file .attributes.yml in the same folder as the file you're looking to make accessible, formatted like this:

unenrolled:
- "*.png"
- "*.jpeg"

For each role (unenrolled, student, ta, instructor), this provides glob patterns of files that are accessible. "More privileged" roles inherit the access from the "less privileged" ones, by default, via this mechanism:

relate/course/models.py

Lines 664 to 667 in c2b196c

rpm(role=role, permission=pp.access_files_for,
argument="student").save()
add_unenrolled_permissions(role)

(i.e. you can change this by configuring roles)

This is documented here: https://documen.tician.de/relate/content.html#custom-urls

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luspi
Comment options

Answer selected by luspi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants