function Role6::updatePerms

8.0.x Role6.php Role6::updatePerms()
7.x Role6.php Role6::updatePerms()
2 calls to Role6::updatePerms()

File

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

Namespace

Drush\Role

Class

Role6

Code

function updatePerms() {
  $new_perms = implode(", ", $this->perms);
  drush_op('db_query', "UPDATE {permission} SET perm = '%s' WHERE rid= %d", $new_perms, $this->rid);
}