feat: manage material visibility and shares
The management save/update body takes is_private, author_user_id and
share_user_ids (absent keeps each; a new material gets the caller as
author), and the managed material shows them. New routes PATCH
/materials/{id}/visibility, PUT /materials/{id}/shares and GET /users,
with the MCP tools bm_manage_set_material_visibility,
bm_manage_set_material_shares and bm_manage_list_users. The /bmadmin
form gets the private switch, the author picker and shared_with.
This commit is contained in:
@@ -91,6 +91,12 @@ materials:
|
||||
files: Files
|
||||
published_at_comment: Leave empty for a draft that students do not see.
|
||||
tags: Tags
|
||||
is_private: Private
|
||||
is_private_comment: Only the author and the users it is shared with see a private material.
|
||||
author: Author
|
||||
author_comment: An author with the materials permission manages access in the student app.
|
||||
shared_with: Shared with
|
||||
shared_with_comment: Users who see a private material.
|
||||
material_types:
|
||||
pdf: PDF
|
||||
notatka: Note
|
||||
|
||||
@@ -91,6 +91,12 @@ materials:
|
||||
files: Pliki
|
||||
published_at_comment: Puste pole to szkic, niewidoczny dla studentów.
|
||||
tags: Tagi
|
||||
is_private: Prywatny
|
||||
is_private_comment: Prywatny materiał widzą tylko autor i osoby, którym go udostępniono.
|
||||
author: Autor
|
||||
author_comment: Autor z uprawnieniem do materiałów zarządza dostępem w aplikacji studenta.
|
||||
shared_with: Udostępniono
|
||||
shared_with_comment: Osoby, które widzą prywatny materiał.
|
||||
material_types:
|
||||
pdf: PDF
|
||||
notatka: Notatka
|
||||
|
||||
Reference in New Issue
Block a user