Problem/Motivation
Drupal 11: After configuring and testing some access policies for content entities (nodes) in the "Dynamic" mode I don't need one policy anymore. When I try to delete the policy I get the message:
> The access policy POLICY_NAME is being used, and cannot be deleted.
So the access policy can't be deleted before the policy has been removed from affected nodes.
I see the list of nodes the policy has been applied in a views display with views field 'Access policy'.
First I removed the access rules in the access policy and edited the selection rules so that this policy should be obsolete because it no longer matches for any node. Then I saved the affected nodes to get the policy removed. This method doesn't work, the policy is not removed after node update.
Do I have to change the Selection mode at /admin/people/access-policies/node/settings to "Manual" and remove the obsolete policy manually from each node? It seems so.
I expected that at each node update a policy should be removed when it doesn't match the conditions.
Aren't the selection rules checked at any node update?
Did I misunderstand the concept? Or is this a bug?
thanks for clarification.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes