I found user can access all the orders' status if the view all orders permmision was granted.
However, users can not only see own order status if they only have the permiision of viewing own order status.
anyone has ideas?

CommentFileSizeAuthor
#5 794412-user-order-actions.patch2.07 KBlongwave
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave’s picture

Category: feature » support
Status: Active » Closed (fixed)

They can see their own orders at user/UID/orders if they have "view own orders" permission.

MickC’s picture

Authenticated user can see the Orders list, however the Actions icons are not visible with just View Own Order permission.
I could only get the Actions icon to appear by granting authenticated user "View All Orders".
Using Ubercart Views I've created a view which overrides Orders, validating on current user to prevent viewing others orders.

Is this a bug?

MickC’s picture

Status: Closed (fixed) » Active

Don't want to duplicate issue, so setting this one to Active so this gets picked up -tks.

longwave’s picture

Title: How to let customers view their own order status? » Allow 'view own orders' permission in uc_order_actions
Version: 6.x-2.2 » 7.x-3.x-dev
Category: support » feature

Actions were designed for admins only, this case hasn't been needed before, so changing to a feature request and bumping to 7.x-3.x where it will be implemented first.

You could implement this without the actions field by adding a field that links to the order view URL.

longwave’s picture

Status: Active » Needs review
FileSize
2.07 KB
longwave’s picture

Version: 7.x-3.x-dev » 6.x-2.x-dev
Status: Needs review » Patch (to be ported)

Committed to 7.x in #1410054: Replace user and admin order history pages with Views

Can be backported to 6.x

longwave’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.