Currently, we only have one general permission to bypass validation.
We should introduce a new additional permission for terms and update the validation.

if ($user->hasPermission('unique_field_perm_bypass') || $user->hasPermission('unique_field_perm_term_bypass')) {}

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

astonvictor created an issue. See original summary.

shubham_pareek_19 made their first commit to this issue’s fork.

shubham_pareek_19’s picture

Status: Active » Needs review
id.conky’s picture

Assigned: Unassigned » id.conky
id.conky’s picture

Assigned: id.conky » Unassigned
Status: Needs review » Reviewed & tested by the community

Changes reviewed and tested - working as expected.
Updated branch from upstream and it's ready for merge.

astonvictor’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.