Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mastermw95's avatar

Permission handling in Voyager

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

0 likes
1 reply
jlrdw's avatar

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.

Please or to participate in this conversation.