I'm implementing a Role Based Access Control system .
Users have Roles (many-to-many)
Roles have Permissions (many-to-many)
Roles have Privileges (many-to-many)
A Role belongs
to A Customer
I want to have 2 default Role s : Admin and Normal. The problem is , the Role s belong
to Customers. So it means i need to define this default Roles for each Customer.
How can i avoid defining the same 2 Roles for each Customer ?
(The first idea i have come up with, was to keep the owners of these default Roles NULL , but this is gonna add a lot of extra control and forking over my authorization methods)