Plus Package > Allow by term
-
Hi Vasyl,
I have an issue with the Plus Package ability to set statements for a specific term. Basically, I restrict to list and edit any post and set then the resource to allow, which works perfect for the listing option but fails for the edit capability of the user.
{ "Statement": [ { "Action": "List", "Condition": { "Equals": { "(*boolean)${CALLBACK.is_admin}": true } }, "Effect": "deny", "Resource": "PostType:post:posts" }, { "Effect": "deny", "Resource": [ "PostType:post:posts:Edit", "PostType:post:posts:Delete", "PostType:post:posts:Publish" ] }, { "Action": "List", "Effect": "allow", "Resource": "PostType:post:term:department:test:posts" }, { "Effect": "allow", "Resource": [ "PostType:post:term:department:test:posts:Edit", "PostType:post:term:department:test:posts:Delete", "PostType:post:term:department:test:posts:Publish" ] } ] }
The part which doesn’t work is:
{ "Effect": "allow", "Resource": [ "PostType:post:term:department:test:posts:Edit", "PostType:post:term:department:test:posts:Delete", "PostType:post:term:department:test:posts:Publish" ] }
It seems like it has no effect.
Is this a bug or am I doing something wrong?
Best regards,
Valentin
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Plus Package > Allow by term’ is closed to new replies.