Commands for Roles

Topics: Core, Writing modules
Feb 22, 2013 at 6:10 PM
I needed to be able to create roles and set permissions as part of a complex recipe.
I noticed that roles have no commands for operating them.

I put this together, let me know what you guys think.
Feb 22, 2013 at 11:43 PM
Looks like a nice feature set. We might want to pull some of that into core.
Feb 25, 2013 at 11:46 AM
Edited Feb 25, 2013 at 11:46 AM
Awesome, Sébastien Ros mentioned something about that on twitter.
I'll try to get him to list the details so you guys can do that...
Apr 16, 2013 at 12:15 PM
Edited Apr 16, 2013 at 12:22 PM
Looks like a potentially useful tool but how do you use it? It isn't clear what I should do with the sample recipe xml you provided on

Could you please provide more information sufficient to allow me to get a handle on the tool.

Also, could I use this tool to give permissions to use the Dashboard menu item called 'Users' to certain roles other than just Administrator?
Apr 18, 2013 at 2:28 PM

This module add commands and recipe handlers for the following:
  • creating and deleting roles
  • add users to and removing users from roles
  • assigning and removing permissions from roles.
You can use the commands or a recipe to perform any of that functionality, instead of the dashboard.

Regarding the dashboard permission, I'm not sure if there is a permission for that...