RBAC with a different user table

Hello everybody

I need to config rbac for both default user table and another user table namely ‘customer’.

Is it possible at all?

Thanks in advance

Yes, It’s possible.

It’s enough to modify ‘can’ function and use the user identity as its first parameter.

If you save the user id as something like admin.1, admin.2, employee.1 , etc. then you would be able to use rbac for both admin table and employee table.

I did it.

and I hope it would be useful for newbies.