Skip to content
Snippets Groups Projects

Issue #3437124: Install hook causes error when installing from config

1 file
+ 6
4
Compare changes
  • Side-by-side
  • Inline
+ 6
4
@@ -10,10 +10,12 @@ use Drupal\user\RoleInterface;
/**
* Implements hook_install().
*/
function protected_forms_install() {
user_role_change_permissions(RoleInterface::AUTHENTICATED_ID, [
'bypass protected forms validation' => FALSE,
]);
function protected_forms_install($is_syncing) {
if (!$is_syncing) {
user_role_change_permissions(RoleInterface::AUTHENTICATED_ID, [
'bypass protected forms validation' => FALSE,
]);
}
}
/**
Loading