CONST
Less than 1 minute
Syntax
${CONST.<constantName>}
Definition
Get value for any globally defined constant declared with the define PHP core function.
For example, in the following policy we restrict the ability to edit any terms that belong to the “Product Category” taxonomy if a request comes from the RESTful API.
{
"Statement": [
{
"Effect": "deny",
"Resource": "Taxonomy:product_category:terms",
"Action": [
"Edit",
"Delete"
],
"Condition": {
"Equals": {
"(*bool)${CONST.REST_REQUEST}": true
}
}
}
]
}
Virtual Assistant