Level 75
You could set a flag (boolean) that prevents deletion of an admin unless a certain role is allowed to.
Most RBAC is just logic type problems, can or cannot or true or false.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi there, I am quite new to voyager, what I want to do is making some enhancements to roles table I created a new role type called owner and gave him some permissions like browsing users and deleting them but what I need is to prevent the owner from deleting the admin! I did a lot of searches but nothing helped me thanks in advance
Please or to participate in this conversation.