Acces denied to your own content if you select the wrong terms

Created on 31 December 2023, 6 months ago
Updated 6 January 2024, 6 months ago

Steps to reproduce

Settings
Terms of "Group Vocabulary field" in users profiles and in nodes
Group-A, Group-B, Group-C

Field value in you profile:
Only Group-A

You belong to Editor role: You can create, modifiy and delete nodes

You create a new node:
In the Group vocabulary field you select Group-A.
So far so good, It works! Only users of group-A can see the node.

You create another node:
In the Group vocabulary field you select ONLY Group_B (stupid error, I know, but it's possible)
Save the node and you are done. You cannot see your node anymore

What do you think?

My idea would be to dynamicaly alter the node form so that the editor can select only the Group terms he belongs to.
This is what I did in the tiny custom module I developped before installing Access Policy.
Would you see another way to prevent this kind of error in Access Policy module?

Thanks in advance for you advice.
An Happy New Year!

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.0

Component

User interface

Created by

πŸ‡«πŸ‡·France gilbertdelyon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024