Closed (won't fix)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Provided Module Integrations
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2009 at 14:51 UTC
Updated:
20 Jul 2012 at 21:43 UTC
Jump to comment: Most recent
Comments
Comment #1
casey commentedWhat I have in mind:
Datatypes
Events
As far as possible; catch form submissions.
Conditions
Actions
Comment #2
fagoHm, why have a separate load permission action? I think a default input form for permissions would suffice, that just shows a select off the available permissions?
Also, roles are currently treated as "configuration setting" not as parameter. As in rules 1.x both at the same time isn't possible, we would have to change it to "parameter" all the way - but that would be bad for usability. So as of now, integrating this would be hard, so better go with a separate module for now. :)
In rules 2.x things will be improved and we can have a role a "conifugration setting" and a "parameter" for one action at the same time. Then we can think again about adding this stuff directly to rules.
However, I wonder what are the use-cases for this? Usually this is something the admin defines once, but doesn't need rules for.
Comment #3
casey commentedI want to use this as an alternative to the og.module (which I think is not very flexible). I use several contenttypes that act as group types. Groups should have their own permissions, so I need a role per group. I need permissions to be loadable since I want to dynamicly grant them to roles.
But thanks for your comment. I'll stick to a seperate module for now.
Comment #4
mitchell commentedMarked #272972: Event: user roles created and deleted as a duplicate of this issue.
Comment #5
Anonymous (not verified) commentedMy issue (#517396: 'Has role' condition unavailable at account creation) requires an email to be sent to new users of a certain role (i.e. if a user registers as a 'Suppler', they get sent an email explaining how to add products to the site).
Comment #6
garywiz commentedLet me just place a strong vote in favor of further discussion.
We use OG, and believe me, if there were another way, I would love it. OG itself isn't that bad, but when you look at things like og_user_roles..... omg.... it is like a house of cards. There is so much code that does so many things which could easily break, and is filled with special cases and URL rewrites. I have no confidence in using stuff like that.
Rules, on the other hand, has been a robust solution to so many problems of customization for us. For example, if I could create a rule such as:
Wow, this would be great.
Right now, I noted that that there is no rule trigger for "hook_user_load()". It would be great if there were, since this would allow modifications to user's permissions and other characteristics based upon page or other context.
Of course there are gotchas to this, but I can definitely see a day when these types of rulesets could almost completely replace many other modules.
Comment #7
konrad1811 commentedMaybe little simmilar to this:
I'd like to block node edition by a user that a node has field with this user name in it.
So I have a node with field with some value = name "SomeName" and if a user with called "SomeName" is going to edit this node - he's redirected to only view this node.
Or with uid number - the same...
But haven't found any event like "Content is going to be edited".
There is "Content is going to be viewed" or "...saved" but it's not enough... If someone is going to save - he already lost he's job as he didn't notice he should not edit such node at all...
Comment #8
Bilmar commentedsubscribing
Comment #9
robby.smith commentedI am needing this as well. For my situation, when a role is removed or added (Event: Role details have been updated) I need an action to be taken by rules. Currently, I can only do this through Event "User account details have been updated" but I don't wish this rule to be executed/evaluated each time the user account details have been updated but rather ONLY when the role has been changed. Hope this helps to show there is demand for this. Thanks!
Comment #10
BenK commentedSubscribing...
Comment #11
robby.smith commentedTo confirm, is 'Role details have been updated' for the event when a User receives/loses a role?
Or is this when an administrator updates a Role, for example the name?
casey - if you could provide a patch I would be more than happy to test it. Thanks
Comment #12
robby.smith commentedkindly bumping
Comment #13
planstoprosper commentedSubscribing. Is this still in the works?
Comment #14
fagoNo I have not been working on that. Additionally I think this is rather sophisticated stuff, which should not ship with the main module as the usual user won't need it. Best this would be added as a separate add-on module.
Comment #15
mitchell commentedUpdated component.
Comment #16
fadgadget commentedsorry is this now updated to use role changes have a rule? I am trying to create new content when a member has new role (welcome post)
thanks