Unique Field doesn't work when user doesn't have access

Created on 17 October 2022, over 1 year ago
Updated 16 January 2024, 5 months ago

Problem/Motivation

When the user tries to insert a new value, the check always returns true. because the responsible function returns an empty array.

Steps to reproduce

use the field in a custom entity that the target user doesn't have access to it.

Proposed resolution

add accessCheck(false) ; in the query

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: outdated

Version

2.1

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan heshamkh

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024