Skip to content

Create vendor without user create a null user vendor. #41

@shovan777

Description

@shovan777

What I'm trying to achieve

I accidentally created a vendor without user and it allowed me to do so.

Steps to reproduce the problem

  1. Create a vendor with vendor create mutation.
  2. Leave the user argument in the mutation.
  3. Vendor is created with null user

What I expected to happen

I expected that an error would occur and I should not be able to create a vendor before it is a user object.

But instead what happened is I could create the vendor with null user.
null_user

System information

Saleor version:

  • dev (current master)
  • 3.0
  • 2.11
  • 2.10

Operating system:

  • Windows
  • Linux
  • MacOS
  • Other

Metadata

Metadata

Assignees

No one assigned

    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