public function Role6::grant_permissions

8.0.x Role6.php public Role6::grant_permissions($perms_to_add)
7.x Role6.php public Role6::grant_permissions($perms_to_add)

Overrides RoleBase::grant_permissions

File

lib/Drush/Role/Role6.php, line 44

Namespace

Drush\Role

Class

Role6

Code

public function grant_permissions($perms_to_add) {
  $perms = $this->getPerms();
  $this->perms = array_unique(array_merge($this->perms, $perms_to_add));
  $this->updatePerms();
}