You are here

function cmis_update_8204 in CMIS API 8.2

Same name and namespace in other branches
  1. 3.0.x cmis.install \cmis_update_8204()

Revoke "access cmis operations" permission.

File

./cmis.install, line 49

Code

function cmis_update_8204() {

  /** @var \Drupal\user\RoleInterface $role */
  foreach (Role::loadMultiple() as $role) {
    if ($role
      ->hasPermission('access cmis operations')) {
      $role
        ->revokePermission('access cmis operations');
    }
    $role
      ->save();
  }
}