We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
myth-auth/src/Authorization/GroupModel.php
Line 85 in 9b930b9
In the last commit, you changed the line (along with namespacing issues)
return $this->select('auth_groups_users.*, auth_groups.name, auth_groups.description')
to
return $this->builder()->select('auth_groups_users.*, auth_groups.name, auth_groups.description')
Now it complains about not finding toArray() method. I took ->builder() out from the statement and it started working again.
The text was updated successfully, but these errors were encountered:
Taking a closer look, in PermissionModel you are using builder(), though I haven't tried it yet so I don't know if we'll run into the same problem.
public function doesUserHavePermission(int $userId, int $permissionId): bool { $permissions = $this->builder() ->join('auth_groups_permissions', 'auth_groups_permissions.permission_id = auth_permissions.id', 'inner') ->join('auth_groups_users', 'auth_groups_users.group_id = auth_groups_permissions.group_id', 'inner') ->where('auth_groups_users.user_id', $userId) ->asArray() ->findAll();
Sorry, something went wrong.
Already in a pull request
No branches or pull requests
myth-auth/src/Authorization/GroupModel.php
Line 85 in 9b930b9
In the last commit, you changed the line (along with namespacing issues)
to
Now it complains about not finding toArray() method.
I took ->builder() out from the statement and it started working again.
The text was updated successfully, but these errors were encountered: