Skip to content

Can't assign a relationship to the default User collection #7

Closed

Description

@jmikrut

Expected Behavior

Should be able to set the relationTo property of a relationship field equal to the default user collection.

Current Behavior

The field will fail validation because users is not added to the validRelationships properly during collection and global sanitization.

Possible Solution

If Payload is relying on the default user collection, users should be added to the list of valid relationships.

Steps to Reproduce

  1. Create an empty config that will automatically add the default User collection.
  2. Create a Posts collection or similar with one relationship field pointing to users
  3. Attempt to start the server (RIP)

Activity

  1. self-assigned this
    on Jan 16, 2021
  2. denolfe commented on Jan 16, 2021

    @denolfe
    Member

    Closed with b2d05c7

  3. added 5 commits that reference this issue on Oct 15, 2023
  4. github-actions commented on Sep 8, 2024

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  5. locked as resolved and limited conversation to collaborators on Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions