Rules integration

opensanta - October 21, 2008 - 02:16
Project:Content Access
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Would it be possible to include support for changing node permissions?

#1

fago - October 24, 2008 - 13:21

yep, that's the plan. Try the recent development snapshot of content access. I plan to add also per user support there on top of the ACL integration.

#2

opensanta - November 23, 2008 - 06:28
Title:Node access integration» Rules integration
Project:Rules» Content Access
Version:6.x-1.x-dev» 6.x-1.x-dev
Component:Provided module integration» Code

@fago: Rules integration pretty much amounts to coding actions, right? Another possible route is to use #329500: support for looping and data lists and nodeaccess_userreference.

My use case scenario is to let users pick who they want to have view, edit, delete privileges (nodeaccess_userreference does this well), and also have actions to automatically give and take away those privileges from users(s) using rules.

#3

fago - January 2, 2009 - 17:38

yep, this would be fine for building an own frontend for the ACL integration.

#4

fago - January 2, 2009 - 18:29
Status:active» fixed

I've just added 2 new actions to the module: For granting or revoking per user access permissions.

#5

System Message - January 16, 2009 - 18:30
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#6

NikLP - September 10, 2009 - 11:49
Category:feature request» support request
Status:closed» active

Where would one need to create rules to mimic nodeaccess_userreference etc for use in rules? Does this exist already? I couldn't see anything. Or does it just not matter, and I should use that module^ ?

Edit: that module seems to work fine, but it seems like finer-grained, UI based control could easily be achieved to replace it, and its counterparts.

#7

dropchew - September 10, 2009 - 12:04

Hi,

The rules implementation is working great. But I noticed that when triggering a revoke or grant access in rules, eg, Revoke content permissions by role, it revokes the permission for all your own nodes, is there a way to trigger on per node?

Thanks!

#8

FiNeX - October 29, 2009 - 19:57

I've a content type (call it: X) with two fields:

- node reference (to another content type, Y)
- user reference

when I update an X node, I'd like to set the referenced node view permission to the referenced user.

I've created a simple rule:

ON event After updating existing content

IF Updated content is X

DO Grant access for Referenced user.

The first time the argument of the action are setted, they displays the to cck fields. But, when the rule is saved, them are deleted (so you have to manually load the fields).

I don't know if it is a rule problem or a content_access + ACL issue.

 
 

Drupal is a registered trademark of Dries Buytaert.