https://cerbos.dev logo
#help
Title
# help
m

Maxim Laxberg

10/19/2023, 1:13 PM
Hi all Is it somehow possible to get action name in condition? Like this one (see %action%)?
Copy code
-   actions: [ 'list', 'view', 'create', 'update' ]
            roles: [ tenant-user']
            effect: "EFFECT_ALLOW"
            condition:
                match:
                    expr: %action% in P.attr.acl
o

oguzhan

10/19/2023, 1:18 PM
Hi @Maxim Laxberg, It is not possible to do that currently, but there is an issue in GitHub for this: https://github.com/cerbos/cerbos/issues/1828 Though, there are some complications (summarized in the GitHub issue in a comment) that needs to be addressed before this is introduced.
m

Maxim Laxberg

10/19/2023, 1:27 PM
thank you! 🙂
🙌🏻 1