You are here

function opigno_module_update_8001 in Opigno module 8

Give an access to specific Opigno module permissions.

Implements hook_update_N().

File

./opigno_module.install, line 320
Opigno module app install/update functionality.

Code

function opigno_module_update_8001() {
  $role = Role::load(RoleInterface::AUTHENTICATED_ID);
  $issueAccessPermissions = [
    "view published module entities",
  ];
  foreach ($issueAccessPermissions as $permission) {
    $role
      ->grantPermission($permission);
  }
  $role
    ->save();
}