project-collaborator

This is a Gitana System Access Policy.

You can reference it using the identifier project-collaborator.

The JSON for this policy is:


{
  "order": 1000,
  "system": true,
  "key": "project-collaborator",
  "title": "Collaborator within the current Project",
  "statements": [
    {
      "description": "Grant Contributor to repository",
      "roles": [
        "contributor"
      ],
      "action": "grant",
      "conditions": [
        {
          "type": "type",
          "config": {
            "type": "^repository.*"
          }
        }
      ]
    },
    {
      "description": "Grant Contributor to branch",
      "roles": [
        "contributor"
      ],
      "action": "grant",
      "conditions": [
        {
          "type": "type",
          "config": {
            "type": "^branch.*"
          }
        }
      ]
    },
    {
      "description": "Grant Collaborator role to all content in project",
      "roles": [
        "collaborator"
      ],
      "action": "grant",
      "conditions": [
        {
          "type": "type",
          "config": {
            "type": "^node.*"
          }
        }
      ]
    }
  ]
}