cloudflare/authr

subject properties

Closed this issue · 1 comments

How to access the subject properties in rules?

for example, to allow access to resources from a user group:

{
    "access": "allow",
    "where": {
        "action": "edit",
        "rsrc_type": "post",
        "rsrc_match": [
            ["@group_id", "=", "?????"] // can be made as a reference to the subject properties "#group_id"?
        ]
    }
}

ok, i solved this problem