chore: bump version

fix: separate privileged check when editing server
This commit is contained in:
Paul Makles
2023-03-11 17:04:30 +00:00
parent 13ed69c82a
commit 92ac86a6bd
5 changed files with 10 additions and 7 deletions

View File

@@ -94,7 +94,10 @@ pub async fn req(
permissions
.throw_permission(db, Permission::ManageServer)
.await?;
} else if data.flags.is_some() && !user.privileged {
}
// Check we are privileged if changing sensitive fields
if data.flags.is_some() && !user.privileged {
return Err(Error::NotPrivileged);
}