Access denied to inventory manager

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

Hello,
I've recently moved to ubercart after trying to manipulate ecommerce. I uninstalled ecommerce fully and ubercart installed with no problems. I've now tried to install inventory manager by uploading the inventory API and selecting both the options (API and simple stock levels). I've allowed administrative access to all modules but still get the following error if I add or edit a product:
Inventory manager has not been chosen. Please select one in the Inventory settings admin page

There is no inventory manager link in the menus or administer sections. Did I miss something?

Thanks!
Matt

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Access denied to inventory manager

Select the stock manager at admin/store/settings/inventory then save your configuration.

<tr>.
matthew_ellis24@drupal.org's picture
Offline
Joined: 02/24/2008
Juice: 32
Re: Re: Access denied to inventory manager
Assigned to:TR» matthew_ellis24@drupal.org

Hmmm, I don't know why I didn't think of this last night. But if I log in as the superuser I have access, but as an administrator with full access I don't. Is this normal?

Thanks
Matt

ryank76's picture
Offline
Joined: 01/16/2008
Juice: 79
This problem really sucks
Assigned to:matthew_ellis24@drupal.org» ryank76

We're getting this issue on a large site with multiple administrators and it's really annoying and limiting. Why doesn't an admin with the right permissions have access to the admin/store/settings/inventory page??

grobot's picture
Offline
Joined: 04/12/2008
Juice: 289
Fix
Assigned to:ryank76» grobot

We have both "Inventory API" (1.1.1) and "Simple Stock Levels" (1.5) enabled.

At first I could see the SELECT menu, but there were no options to choose from (apart from "Select an inventory manager ..."). I logged out and logged in as UID=1 and was presented with the "Simple Stock Levels" option in the same menu.

If you log in as uid=1, then you can set the inventory levels.

If I log out and log back in as my regular user, permission is denied to visit that page. My user's "administrator" role has the "administer inventory" right, but uc_inventory is checking for "administer stock levels" in the _menu() function.

Patch to fix this issue is attached - looks like it's just a mismatch in the permissions name.

(An alternative workaround, as posted above, is to use your uid=1 user to set up uc_inventory.)

AttachmentSize
uc_inventory_access_denied.patch 461 bytes

Giant Robot - for campaign, charity, ngo & online store solutions - www.giantrobot.co.nz