{
    "requiresAuth": true,
    "requiredStages": [],
    "conditions": [
      {
        "roles": ["ROLE_VIEWER"],
        "condition": {
          "operator": "OR",
          "conditions": [
            {"field": "approvalStatus", "operator": "EQUALS", "value": "pending"},
            {"field": "approvalStatus", "operator": "IS_NULL"},
            {"field": "basicDetailsFilled", "operator": "NOT_EQUALS", "value": "completed"},
            {"field": "basicDetailStatus", "operator": "EQUALS", "value": "draft"}
          ]
        },
        "message": "Viewers can access registration when it is in draft or pending approval"
      },
      {
        "roles": ["ROLE_ADMIN", "ROLE_SHOBA", "ROLE_RELATIONAL_MANAGER"],
        "condition": {
          "field": "basicDetailsFilled",
          "operator": "EQUALS",
          "value": "completed"
        },
        "message": "Admins can access submitted registrations"
      }
    ]
  }