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

rszrama’s picture

Status: Active » Closed (fixed)

Sorry, 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.

waveer’s picture

ok, thanks!

Next time i will go there ask question.