Bypass roles, use only groups for permissions


How can we use only groups (group_id) to determine permissions for our users?

We have added a bunch of users manually to the database (I know), and they don’t have roles assigned to them, which is causing issues.
e.g. here: if (!$authorizer->checkAccess($currentUser, 'uri_dashboard')) {

Besides that, we don’t have a need for roles for this particular application. Groups are enough.


You can use thebuilt-in in_group callback in your access checks.