Cannot see ordered records in Virtuemart when User group are Not super users

Started by hoknight, November 29, 2012, 09:34:08 AM

Previous topic - Next topic

hoknight

Hi,

Is it possible to improve it in the next version?
Can do the other user group assigned, they can be able to view the orders they do a admin check on the main site configuration?
Now I changed this by modifying this file: /administrator/components/com_virtuemart/helpers/permissions.php on line 184

change:
if($user->authorise('core.admin')){

into:
if($user->authorise('core.admin','com_virtuemart')){

When I now set the 'Configure' action in ACL Manager for virtuemart to allowed the user group will be able to access the orders.

Thanks.

[attachment cleanup by admin]

hoknight

Hi,

Is there any idea for the Virtuemart working with ACL Manager?

A quick look tells me that Virtuemart checking if a user is the Super Vendor on line 43 of administrator/components/com_virtuemart/admin.virtuemart.php, if not the error "Access restricted to Vendors and Administrator only". This is not an Joomla ACL check, but a check for a certain type of user. I don't know how to set a user as store admin.

Thanks.