src/Gzero/Core/Policies/UserPolicy.php
public function delete(User $user, User $entity)
    {
        if ($entity->id === $user->id) {
            return true;
        }
        return $user->hasPermission('user-delete');
    }
public function delete(User $user, User $entity)
    {
        if ($entity->id === $user->id) {
            return true;
        }
        return $user->hasPermission('user-delete');
    }
public function delete ( User $ user , User $ entity ) { if ( $ entity -> id === $ user -> id ) { return true ; } return $ user -> hasPermission ( 'user-delete' ) ; }
Policy for deleting single element

@param User $user   User trying to do it
@param User $entity User that we're trying to update

@return boolean
Policy for deleting single element