It should be possible to add/remove permissions on given user roles.

CommentFileSizeAuthor
#1 2064965-add-remove-permission.patch3.04 KBhrmoller
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hrmoller’s picture

Status: Active » Needs review
FileSize
3.04 KB

The basic add/remove functionality is added in the patch but it could be extended to be a bit more generic. I.e. instead of being forced to provide a roleId to could be nice if a roleId or a role name could be provided.

sokrplare’s picture

This is awesome! Was about to apply the patch, then noticed the #1810846: Duplicate efforts? issue and saw drush_role has this same functionality I believe.

lolandese’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)
Related issues: +#1810846: Duplicate efforts?

Seems this functionality went into Drush itself. See https://github.com/drush-ops/drush/blob/6.x/commands/core/role.drush.inc. See also the related issue.

Role commands (Drush 6+): (role)

  • role-add-perm (rap) Grant specified permission(s) to a role.
  • role-remove-perm (rmp) Remove specified permission(s) from a role.