can we personalize Rbac ?

Hi !

I’ve just tested the Rbac tool & I wonder if we can add a param or something like that to the check rule

here’s my scenario : in my app , there are many projects,

and I would like to give the permission to create a post to an user, but only for a specific project

is there any (easy) way to do that ? didn’t find anything on the documentation.

i’ve been thinking of adding a field ‘project_id’ (or whatever the context could be) on the auth_assignment table

then do a sql check


WHERE `user_id` LIKE $user_id AND `project_id` = $project_id

if found -> ok , if not -> forbidden

what do you think ? =)