fun requirePermission(permission: String): Unit
Helper method which checks that the current RPC user is entitled for the given permission. Throws a PermissionException otherwise.