After an anonymous order is placed, administrators receive an 403 Access denied error on the payment tab.

CommentFileSizeAuthor
#5 anonymous_payments-2808809.patch1.22 KBgmem

Issue fork commerce-2808809

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    Comments

    steveoliver created an issue. See original summary.

    nicobot’s picture

    I cannot reproduce this error, I've even tried checking complete orders with and without payments.

    @steveoliver, can you please add more information to reproduce the issue?

    Thanks,

    steveoliver’s picture

    Status: Active » Closed (works as designed)

    @nicobot, Just re-tried on HEAD. It must have been an issue locally and/or with pre-beta code. Closing. Thanks.

    icurk’s picture

    Status: Closed (works as designed) » Active

    I have reopened this ticket because I also have this issue on all orders where anoymous user is author of the order. I found out that the AccessDeniedHttpException is thrown in PaymentAddForm.php file in buildPaymentGatewayForm method.
    There is some @todo comment which got me thinking that this is there for a reason. Maybe instead of AccessDeniedHttpException we should display some other message which would explain why you can not add payment method to anonymous user.

    gmem’s picture

    StatusFileSize
    new1.22 KB

    Here's a small patch to nice-ify the page until adding payments to anonymous users is added. A short term solution but it should hopefully reduce any confusion caused by this issue.

    gmem’s picture

    Status: Active » Needs review
    trickfun’s picture

    i deleted my post.
    sorry the are no bug. only wrong message.