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:
parent
73763b1f58
commit
5f13901ca5
4 changed files with 11 additions and 122 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue