Commit f0df11cc authored by Barbora Kompisova's avatar Barbora Kompisova
Browse files

fixed rest schemas for submission

parent 14be560b
Pipeline #13219 passed with stage
in 16 minutes and 42 seconds
......@@ -21,7 +21,7 @@ class NestedCollection:
'Component': ('id', 'name', 'type'),
'Submission': ('id', 'state', '', 'user.username',
'', 'project.codename',
'', 'project.course.codename',
'', 'course.codename',
'created_at', 'updated_at'),
'ReviewItem': ('id', '', 'line', 'content', 'file', ''),
'Secret': ('id', 'name', 'expires_at')
......@@ -382,7 +382,7 @@ class Schemas:
'user_reduced': (*ALWAYS_ALLOWED, 'username', 'uco', 'email', 'name'),
'users': (*ALWAYS_ALLOWED, 'username', 'uco', 'email'),
'submissions': (*ALWAYS_ALLOWED, 'state', 'project', 'scheduled_for', 'user'),
'submissions': (*ALWAYS_ALLOWED, 'course', 'state', 'project', 'scheduled_for', 'user'),
'submission_state': (*ALWAYS_ALLOWED, 'state'),
'roles': ENT_W_COURSE,
'groups': ENT_W_COURSE,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment