public function removeAuthority(DataObject $node, DataObject $authority)
    {
        if (!$this->checkPerm($node, 'DeletePermissions')) {
            throw new PermissionDeniedException("You do not have permission to do that");
        }

        if ($authority) {
            $authority->delete();
        }
        
        return $node;
    }