private suspend fun ensureAdminPermissionExistsForNode(node: V, cache: NodeCache)

Ensures that at least one permission on node grants NodePermission.ADMIN to at least one user

Parameters

node

the node on which permissions where removed

cache

cache used to prevent failures caused by double loading of the same node

Throws

if the node has no valid NodePermission.ADMIN permission left