forked from jmug/stoatchat
Servers: Create or delete roles.
Members: Assign / un-assign multiple roles. Servers: Routes to set permissions.
This commit is contained in:
@@ -40,7 +40,7 @@ pub async fn req(user: User, target: Ref, data: Json<Data>) -> Result<JsonValue>
|
||||
get_collection("servers")
|
||||
.update_one(
|
||||
doc! {
|
||||
"_id": &id
|
||||
"_id": &target.id
|
||||
},
|
||||
doc! {
|
||||
"$set": {
|
||||
|
||||
Reference in New Issue
Block a user