function cmis_update_8203 in CMIS API 8.2
Same name and namespace in other branches
- 3.0.x cmis.install \cmis_update_8203()
Add the new "access all cmis browsers" permission.
File
- ./
cmis.install, line 35
Code
function cmis_update_8203() {
/** @var \Drupal\user\RoleInterface $role */
foreach (Role::loadMultiple() as $role) {
if ($role
->hasPermission('access cmis browser')) {
$role
->grantPermission('access all cmis browsers');
$role
->revokePermission('access cmis browser');
}
$role
->save();
}
}