project-user

This is a Gitana System Access Policy.

You can reference it using the identifier project-user.

The JSON for this policy is:


{
  "order": 1000,
  "system": true,
  "key": "project-user",
  "title": "Member of the current Project",
  "statements": [
    {
      "description": "Grant Consumer role to everything",
      "roles": [
        "consumer"
      ],
      "action": "grant"
    },
    {
      "description": "Revoke Consumer role to all nodes",
      "roles": [
        "consumer"
      ],
      "action": "revoke",
      "conditions": [
        {
          "type": "type",
          "config": {
            "type": "^node.*"
          }
        }
      ]
    },
    {
      "description": "Grant Consumer role to all definitions",
      "roles": [
        "consumer"
      ],
      "action": "grant",
      "conditions": [
        {
          "type": "definition"
        }
      ]
    },
    {
      "roles": [
        "consumer"
      ],
      "action": "grant",
      "conditions": [
        {
          "type": "qname",
          "config": {
            "qname": "r:root"
          }
        }
      ]
    }
  ]
}