public function editRoles(User $user, $model)
    {
        // Does this record belong to another user?
        $another = $user->id != $model->id;

        return $another && $user->hasPermission('edit_users');
    }
public function editRoles(User $user, $model)
    {
        // Does this record belong to another user?
        $another = $user->id != $model->id;

        return $another && $user->hasPermission('edit_users');
    }
public function editRoles ( User $ user , $ model ) { // Does this record belong to another user? $ another = $ user -> id != $ model -> id ; return $ another && $ user -> hasPermission ( 'edit_users' ) ; }
Determine if the given user can change a user a role.

@param \TCG\Voyager\Contracts\User $user
@param  $model

@return bool
Determine if the given user can change a user a role .