-
In various homework problems and quiz/exam questions we want to use resources from the git repository (like images for plots, or some data files). If we include in the yaml file something like What setting do we need to set to allow access to certain data from the underlying repository? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need a file unenrolled:
- "*.png"
- "*.jpeg" For each role ( Lines 664 to 667 in c2b196c (i.e. you can change this by configuring roles) This is documented here: https://documen.tician.de/relate/content.html#custom-urls |
Beta Was this translation helpful? Give feedback.
You need a file
.attributes.yml
in the same folder as the file you're looking to make accessible, formatted like this: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
(i.e. you can change this by configuring roles)
This is documented here: https://documen.tician.de/relate/content.html#custom-urls