TypeError in RevokeAccess::updateSettings
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3421347. -->
Reported by: [boromino](https://www.drupal.org/user/859722)
Related to !2 !1
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>TypeError: Drupal\eca_content_access\Plugin\Action\RevokeAccess::updateSettings(): Argument #1 ($bundleSettings) must be of type array, bool given, called in /var/www/html/web/modules/contrib/eca_content_access/src/Plugin/Action/GrantAccess.php on line 158 in Drupal\eca_content_access\Plugin\Action\RevokeAccess->updateSettings() (line 20 of /var/www/html/web/modules/contrib/eca_content_access/src/Plugin/Action/RevokeAccess.php)</p>
<p>#0 /var/www/html/web/modules/contrib/eca_content_access/src/Plugin/Action/GrantAccess.php(158): Drupal\eca_content_access\Plugin\Action\RevokeAccess->updateSettings()<br>
#1 /var/www/html/web/modules/contrib/eca/src/Entity/Objects/EcaAction.php(102): Drupal\eca_content_access\Plugin\Action\GrantAccess->execute()<br>
#2 /var/www/html/web/modules/contrib/eca/src/Processor.php(188): Drupal\eca\Entity\Objects\EcaAction->execute()<br>
#3 /var/www/html/web/modules/contrib/eca/src/Processor.php(146): Drupal\eca\Processor->executeSuccessors()<br>
#4 /var/www/html/web/modules/contrib/eca/src/EventSubscriber/EcaBase.php(76): Drupal\eca\Processor->execute()<br>
#5 [internal function]: Drupal\eca\EventSubscriber\EcaBase->onEvent()<br>
#6 /var/www/html/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()<br>
#7 /var/www/html/web/modules/contrib/eca/src/Event/TriggerEvent.php(73): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ul>
<li>Install content_access version 2</li>
<li>Save a node where access is set with ECA</li>
</ul>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Content access module has converted settings from <a href="https://www.drupal.org/project/content_access/issues/3383677">serialized to json in 2.0.0-rc2</a>. Do not unserialize settings but use json_decode, instead.</p>
> Related issue: [Issue #3383677](https://www.drupal.org/node/3383677)
issue