AAM incorrectly handles non-scalar param values in JSON access policies that causes a fatal error in PHP 8. Example of Policy:
{
"Statement": [
{
"Effect": "deny",
"Resource": "PostType:post:posts",
"Action": [
"Edit"
],
"Condition": {
"In": {
"(*int)1": "(*array)${POLICY_PARAM.test}"
}
}
}
],
"Param": [
{
"Key": "test",
"Value": "(*array)${CALLBACK.aam_test_get_markers}"
}
]
}
AAM incorrectly handles non-scalar param values in JSON access policies that causes a fatal error in PHP 8. Example of Policy:
{ "Statement": [ { "Effect": "deny", "Resource": "PostType:post:posts", "Action": [ "Edit" ], "Condition": { "In": { "(*int)1": "(*array)${POLICY_PARAM.test}" } } } ], "Param": [ { "Key": "test", "Value": "(*array)${CALLBACK.aam_test_get_markers}" } ] }