security: remove is_system_role from public API

Remove is_system_role from accept lists in create_role and update_role
actions. This field should only be set via seeds or internal actions to
prevent users from creating unkillable roles through the public API.
This commit is contained in:
Moritz 2026-01-06 19:04:03 +01:00
parent 73763b1f58
commit 5f13901ca5
4 changed files with 11 additions and 122 deletions

View file

@ -99,7 +99,7 @@
"strategy": null
},
"name": "users_role_id_fkey",
"on_delete": null,
"on_delete": "restrict",
"on_update": null,
"primary_key?": true,
"schema": "public",