Skip to content

Commit

Permalink
rest: forbided default administrator edit/delete throught API
Browse files Browse the repository at this point in the history
  • Loading branch information
danigargar committed Feb 5, 2024
1 parent 6e381b2 commit 5fb328e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/config/api/raw/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,14 @@
########################################
Demo\Domain\Model\Administrator\Administrator:
attributes:
access_control: '"ROLE_ADMIN" in roles'
order:
username: ASC
username: ASC
write_access_control:
ROLE_ADMIN:
id:
neq: 1
delete_access_control:
ROLE_ADMIN:
id:
neq: 1

0 comments on commit 5fb328e

Please sign in to comment.