forked from jmug/stoatchat
0.5.1-alpha.8
Add Edit Role route.
This commit is contained in:
@@ -67,7 +67,8 @@ pub async fn req(user: User, target: Ref, data: Json<Data>) -> Result<JsonValue>
|
||||
data: json!({
|
||||
"name": data.name,
|
||||
"permissions": &perm_tuple
|
||||
})
|
||||
}),
|
||||
clear: None
|
||||
}
|
||||
.publish(target.id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user