Hi, I'm searching a better way to set/unset permission for a set of modules different from the admin panel. Is possible to achieve this using drush? Or maybe with drupal API?
best regards, Sal
Not sure what you mean by "better", but if you're trying to set drupal permissions remember the role permissions are stored in a table, so if you want to script something, you could simply write an appropriate update SQL query.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Salvatore De Paolis Sent: Tuesday, October 04, 2011 7:11 AM To: support@drupal.org Subject: [support] User permissions
Hi, I'm searching a better way to set/unset permission for a set of modules different from the admin panel. Is possible to achieve this using drush? Or maybe with drupal API?
best regards, Sal
On Wed, 5 Oct 2011 09:23:16 -0700 "Metzler, David" metzlerd@evergreen.edu wrote:
Not sure what you mean by "better", but if you're trying to set drupal permissions remember the role permissions are stored in a table, so if you want to script something, you could simply write an appropriate update SQL query.
I meant better for my use case, which means allowing/disallowing several permission to several roles (sometimes just for testing), so using a mouse is not always the best solution. Thank you for the reply, if it's just SQL query I could go with that,
Regards, Sal