fix: add elevation check to role edit route

This commit is contained in:
Paul Makles
2024-04-07 15:52:14 +01:00
parent 54a4eff623
commit aded2e3239
3 changed files with 9 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ pub async fn req(
.throw_permission(db, Permission::ManagePermissions)
.await?;
// Ensure we have permissions to grant these permissions forwards
permissions
.throw_permission_value(db, data.permissions)
.await?;