function drush_role_remove_perm

8.0.x role.drush.inc drush_role_remove_perm($rid, $permissions = NULL)
6.x role.drush.inc drush_role_remove_perm($rid, $permission = NULL)
7.x role.drush.inc drush_role_remove_perm($rid, $permissions = NULL)
master role.drush.inc drush_role_remove_perm($rid, $permissions = NULL)

Remove a permission from the specified role.

File

commands/core/role.drush.inc, line 140

Code

function drush_role_remove_perm($rid, $permission = NULL) {
  $result = drush_role_perm('remove', $rid, $permission);
  if ($result !== FALSE) {
    drush_log(dt('Removed "!perm" from "!role"', array('!perm' => $permission, '!role' => $result->name)), 'ok');
    drush_drupal_cache_clear_all();
  }
  return $result;
}