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

Comments

fago’s picture

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.

mitchell’s picture

Title: Node access integration » Rules integration
Project: Rules » Content Access
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.

fago’s picture

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

fago’s picture

Status: Active » Fixed

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

Status: Fixed » Closed (fixed)

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

NikLP’s picture

Category: feature » support
Status: Closed (fixed) » 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.

dropchew’s picture

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!

FiNeX’s picture

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.

BenK’s picture

Subscribing...

  • fago committed 34a95e2 on 7.x-1.x
    #323985 rules integration: added new actions for granting and revoking...
gisle’s picture

Issue summary: View changes
Status: Active » Fixed

Look like this has been committed.

gisle’s picture

Status: Fixed » Closed (fixed)