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.
19 lines
473 B
YAML
19 lines
473 B
YAML
columns:
|
|
title:
|
|
label: jz.bm::lang.common.title
|
|
searchable: true
|
|
type:
|
|
label: jz.bm::lang.materials.type
|
|
is_private:
|
|
label: jz.bm::lang.materials.is_private
|
|
type: switch
|
|
course:
|
|
label: jz.bm::lang.common.course
|
|
relation: course
|
|
select: name
|
|
published_at:
|
|
label: jz.bm::lang.materials.published_at
|
|
created_at:
|
|
label: jz.bm::lang.common.created_at
|
|
type: datetime
|