A......... [ZBX-8493] Use correct variable ($linkedRights instead of $linkedUsers) for insert check.