Only a tag owner can delete shared tags


Description

gr.query() is missing in "isVisible" function in "LabelUpdate" script include which causes Label ACLs being evaluated incorrectly.  This results in only tag owners deleting shared tags.

Steps to Reproduce

1. Go to LabelUpdate Script include
2. Go to isVisible function
3. Line 286 should have gr.query(); Or else it will never check the 'label_user_m2m' and will result in a critical ACL as being evaluated as false, preventing users from being able to remove tags from records that they are not the owner of the label for.

Workaround

Populate line 286 with gr.query();

Otherwise it will never check the 'label_user_m2m' and will result in a critical ACL as being evaluated as false, preventing users from being able to remove tags from records that they are not the owner of the label for.


Related Problem: PRB1384582