protected function hasPermissionThroughRole($permission): bool
    {
        foreach ($permission->roles as $role) {
            if ($this->roles->contains($role)) {
                return true;
            }
        }

        return false;
    }
protected function hasPermissionThroughRole($permission): bool
    {
        foreach ($permission->roles as $role) {
            if ($this->roles->contains($role)) {
                return true;
            }
        }

        return false;
    }
protected function hasPermissionThroughRole ( $ permission ) : bool { foreach ( $ permission -> roles as $ role ) { if ( $ this -> roles -> contains ( $ role ) ) { return true ; } } return false ; }
Run through the roles assigned to the permission and
checks if the user has any of them assigned.

@param  \Caffeinated\Shinobi\Models\Permission  $permission
@return boolean
Run through the roles assigned to the permission and checks if the user has any of them assigned .