feat: materials by zjazd in the student API and admin
The material admin form gets the "Na zjazd" picker, every student material JSON carries meeting_id, and GET /materials accepts meeting= inside the published-only scope, so the Pulpit hero can list the zjazd's materials next to its readings.
This commit is contained in:
@@ -32,6 +32,7 @@ var (
|
||||
}
|
||||
materialsRules = []lagoon.RequestRule{
|
||||
{Field: "course", Rules: lagoon.ParseRules("nullable|integer|min:1")},
|
||||
{Field: "meeting", Rules: lagoon.ParseRules("nullable|integer|min:1")},
|
||||
{Field: "tag", Rules: lagoon.ParseRules("nullable|string|max:100")},
|
||||
{Field: "type", Rules: append(lagoon.ParseRules("nullable"), lagoon.In(models.MaterialTypes...))},
|
||||
{Field: "page", Rules: lagoon.ParseRules("nullable|integer|min:1")},
|
||||
|
||||
Reference in New Issue
Block a user