Skip to content

Commit c1a1a43

Browse files
ACMS-4237: minor updates.
1 parent 7ecf8c2 commit c1a1a43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/acquia_cms_site_studio/acquia_cms_site_studio.install

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ function acquia_cms_site_studio_install($is_syncing) {
131131
$module_installer->install($modules_to_install);
132132

133133
// Add text format permission to developer role.
134-
$role = \Drupal::entityTypeManager()->getStorage('user_role')->load('developer');
134+
$role = $entity_type_manager->getStorage('user_role')->load('developer');
135135
$editors = $entity_type_manager->getStorage('editor')->loadMultiple([
136136
'cohesion',
137137
'filtered_html',
138138
'full_html',
139139
]);
140140
foreach($editors as $editor) {
141-
$role->grantPermission('use text format ' . $editor->id());
141+
$role->grantPermission('use text format ' . $editor->id())->save(TRUE);
142142
}
143143
}
144144
}

0 commit comments

Comments
 (0)