Skip to content

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 #36

Closed
@amitgoldy1

Description

@amitgoldy1

I am getting this issue, when I used following steps to reproduce this issue.

  1. I am using laravel Laravel Framework 6.20.38.
  2. 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');
  3. When, I hit this allow path, I am getting this error:
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions