I'm getting a 'Can't set per content permissions for content type....' when using the Rule action 'Revoke access by role'. I'm using the Nov 3rd dev release of content access.

I'm using Flag, content access and rules to revoke anonymous user access on a per node basis. Anonymous user can view the published node content type by default. So, I created a global flag to flag the content as 'private'. In the node type content access control, I enabled per content node access control settings. In Rules, I created a Rule to be fired when 'A node has been flagged, under "Private Nodes"' to react on the flagged-node. The rule action is set to 'Revoke access by role' Parameter: Content: [flagged-node], Role-based access control settings: view administrator, view...'

I also set a rule to react when content is unflagged as 'private'. This rule action is 'Reset access to content type defaults'. This functions properly.

To resolve this problem I had to revert back to the Sept 03 dev release of the content access module. Once I reverted to the Sept 03 dev release, I flushed cache and rebuilt permissions and both rules functioned properly.

Comments

Imaaxa-Cory’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

No updates or comments in over 5 years.