function cmis_update_8201 in CMIS API 3.0.x
Same name and namespace in other branches
- 8.2 cmis.install \cmis_update_8201()
Add the new "administer cmis connection entity" permission.
File
- ./
cmis.install, line 15
Code
function cmis_update_8201() {
/** @var \Drupal\user\RoleInterface $role */
foreach (Role::loadMultiple() as $role) {
if ($role
->hasPermission('administer site configuration')) {
$role
->grantPermission('administer cmis connection entity');
}
$role
->save();
}
}