docs: public void configureTaskQuery(TaskQueryImpl query) {
      configureQuery(query);
  
      if(query.getAuthCheck().isAuthorizationCheckEnabled()) {
  
        // necessary authorization check when the task is part of
        // a running process instance
  
        CompositePermissionCheck permissionCheck = new PermissionCheckBuilder()
                .disjunctive()
                .atomicCheck(TASK, "RES.ID_", READ)
                .atomicCheck(PROCESS_DEFINITION, "PROCDEF.KEY_", READ_TASK)
                .build();
          addPermissionCheck(query.getAuthCheck(), permissionCheck);
      }
    }