Closed
Description
I am getting this issue, when I used following steps to reproduce this issue.
- I am using laravel Laravel Framework 6.20.38.
- add permission of logged user in laravel. Below are my code: $email = Auth::user()->email;
// adds permissions to a user
\Enforcer::addPermissionForUser($email, '/photo/index', 'GET'); - When, I hit this allow path, I am getting this error:
- Argument 1 passed to Casbin\Rbac\DefaultRoleManager\RoleManager::hasLink() must be of the type string, int given, called in /var/www/html/amitdeveloper28/vendor/casbin/casbin/src/Util/BuiltinOperations.php on line 440