context-project

If the project or things within a project are being observed (as opposed to a platform or things within a platform).

{
    "evaluator": "context-project"
}

Example

This configuration, taken from the Developer Menu Items sample, allows Developer menu options for users with the collaborator role:

{
    "config": {
        "blocks": [
            {
                "evaluator": "context-project",
                "config": {
                    "project-context": {
                        "items": [
                            {
                                "key": "project/developers/heading",
                                "allowAuthority": [
                                    "collaborator"
                                ],
                                "items": [
                                    {
                                        "key": "project/developers/graphql",
                                        "allowAuthority": [
                                            "collaborator"
                                        ]
                                    },
                                    {
                                        "key": "project/developers/query",
                                        "allowAuthority": [
                                            "collaborator"
                                        ]
                                    },
                                    {
                                        "key": "project/rules",
                                        "allowAuthority": [
                                            "collaborator"
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                }
            }
        ]
    },
    "enabled": true
}

See also