protected suspend fun createDefaultPermission(user: GropiusUser, constructor: (String, String, MutableList<String>, Boolean) -> T): T
Creates the default permission on node creation The created permission grants ADMIN and READ only to the provided user Does not check permissions or save the created permission
Return
the created permission
Parameters
user
the user who is granted the permission
constructor
used to create the Permission instance