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;
    }
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;
    }
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 ; }
Delete an authority

@param DataObject $node
The node to delete from
@param DataObject $authority
The AccessAuthority we're removing
Delete an authority