On my site, users can upload pictures. They have permission to flag pictures with the "profile picture" flag, but they do not have permission to unflag.

Instead, I have a set of rules that, upon flagging, flags, unflags, and trims flags appropriately. This set of rules worked fine in 2.x, but upon upgrading to 3.x, the nodes are no longer unflagged appropriately. Instead, I get a permissions error: "You are not allowed to flag, or unflag, this content."

However, all of my flag/unflag actions in rules have "Skip permission check" set to TRUE.

When I give users permission to unflag on the permissions page, the rule set evaluates properly. So, it appears that the "Skip permission check" no longer works properly in 3.0.

Comments

shabana.navas’s picture

Could you please include steps on how you created the Rules to flag, unflag..., so that we can re-create the error? Thanks.

shabana.navas’s picture

Status: Active » Closed (cannot reproduce)

I have tested this out and it works just as designed. I have setup Rules, so that upon flagging something like a node, it flags, unflags and trims the flag. If I set "Skip permission check" to FALSE, it behaves as expected and gives the user a message saying they are not allowed to flag, or unflag the content. However, when I set "Skip permission check" to TRUE, it automatically unflags and works as expected.

If this is still a problem, please include a detailed step-by-step of how you have setup flags and rules. Marking this as 'closed (cannot reproduce)' for now.