Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.5
Component:
Order
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2013 at 01:41 UTC
Updated:
23 May 2013 at 12:55 UTC
I have install the new commerce module, and i find a problem.
One of my site has a role need to manage the orders, so i give the role view any order of any type.It works at commerce 7.4, when i installed the 7.5, i find it not works, the role can edit any order, but just can not access the order at 'admin/commerce/orders/%'.
I check the access callback function commerce_order_admin_order_view_access, and find it changes.Then I find how to do it.
But i am a little confused about the change that the permission "user_access('access administration pages')", can someone explain to me why to do that?
Thanks!
Comments
Comment #1
rszrama commentedSorry, the support request is a bit hard to follow, but you should have better luck finding answers to questions at http://www.drupalcommerce.org/questions. The "access administration pages" permission is used to do just that - grant users access to administration pages, anything starting with "admin/" in the URL. Commerce wasn't using this in a few places, so we updated it, but you still should be seeing direct order permission access checks to determine whether or not someone can view or edit a particular order.
Comment #2
waveer commentedok, thanks!
Next time i will go there ask question.