Skip to content

hasPermission() function always return false #62

@SamuelY

Description

@SamuelY

I find that hasPermission() have wrong in UserModel.php.

the function return ($perm->id !== null && $perm->id === $permId) ? true : false;
should be modified as return ($perm->id !== null && $perm->permissionId === $permId) ? true : false;

I have a suggestion

hasPermission() return true only if the requested permission isn't expired

please check it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions