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

Created on 17 October 2022, about 2 years ago
Updated 16 January 2024, 10 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.71.5 2024