Skip to content

Website restriction -> Private Sale: Login only, not preventing registration on GraphQL. #38007

Open
@ghezelbash

Description

@ghezelbash

Preconditions and environment

  • Magento version: 2.4.5-p2 commerce
  • Go to Stores > Configuration > General > General > Website Restrictions, set Access Restriction (general/restriction/is_active) to 'Yes' and set Restriction Mode (general/restriction/mode) to Private Sale: Login Only

Steps to reproduce

  1. Go to Stores > Configuration > General > General > Website Restrictions
  2. Set Access Restriction (general/restriction/is_active) to 'Yes' and set Restriction Mode (general/restriction/mode) to Private Sale: Login Only
  3. Clear the config cache
  4. Send a createCustomer GraphQL request

Expected result

Raise the error message in response: "Can not register new customer due to restrictions are enabled."

Actual result

Customer created. (Registration working)

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: AccountComponent: CustomerIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressProject: GraphQLReported on 2.4.5-p2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions