add: individual topic write permissions
This commit is contained in:
parent
3738a5cd1f
commit
8c779b2f2e
6 changed files with 80 additions and 9 deletions
|
@ -560,7 +560,13 @@ pub async fn add_topic_request(
|
|||
}
|
||||
|
||||
// ...
|
||||
let (topic_id, topic) = ForumTopic::new(req.title, req.description, req.color, req.position);
|
||||
let (topic_id, topic) = ForumTopic::new(
|
||||
req.title,
|
||||
req.description,
|
||||
req.color,
|
||||
req.position,
|
||||
community.write_access,
|
||||
);
|
||||
community.topics.insert(topic_id, topic);
|
||||
|
||||
match data
|
||||
|
@ -616,6 +622,7 @@ pub async fn update_topic_request(
|
|||
description: req.description,
|
||||
color: req.color,
|
||||
position: req.position,
|
||||
write_access: req.write_access,
|
||||
};
|
||||
|
||||
community.topics.insert(topic_id, topic);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue