Ryan Mitchell
Ryan Mitchell
Yep exactly that! I can help with it if you need?
So I actually think for my needs hideAbilities() is enough as we're using policies for resource protection. If you think this is worth adding I can work on it, but...
Haha writing the code is quick. Making the tests work not so quick.
That’s fair, should I put it behind a config flag? So if the roles/groups tables are falsey then it reverts to how it was before?
I've pushed a couple of updates that make it opt-in based on the config value. Do you mind checking them over to make sure this approach works for you? I'll...
Ok I've added some tests here to cover adding groups/roles to users and removing them again. I had to make some changes to the existing eloquent user test, and the...
@abhishekvijayan-zessta no. They will be stored in the database.
You need to specify tables for your roles/groups here: https://github.com/statamic/cms/blob/22ab6996c860f31abd65b06f40a2850d4bb7c9e5/config/users.php#L109-L111
There’s no merge conflicts so it’s not needed. > On 14 Jul 2022, at 15:25, Frederik Sauer ***@***.***> wrote: > > > @ryanmitchell can you merge 3.3 into this...
Asides from the individual comment replies.... Bigger picture, while this works, the `->where('groups/{slug}')` approach seems too stache-specific to me, I agree it would be better to try and aim for...