Problem:
Following the instructions to install the Inventory API, I tried going the the admin/store/settings/inventory menu, but I kept getting an "Access denied" message. I thought this was strange behavior since I had given my role permission to administer inventory on the Access control page.
I tried logging into my site as uid 1, however, and I was able to get to the admin/store/settings/inventory menu.
Reading through the uc_inventory_api.module, I think I found a bug.
On line 45, it looks like permission is set based on the words 'administer inventory'.
However, on line 61, access to the admin/store/settings/inventory menu is granted based on the words 'administer stock levels'.
Solution:
Attached to this post is a patch that changes line 61 to grant permission based on the words 'administer inventory'.
Works for me 
Jim L.
P.S. Still working on this problem about why uc_stocklevels will not decrease following a purchase.
| Attachment | Size |
|---|---|
| uc_inventory_api_module_patch.txt | 454 bytes |



Joined: 08/22/2007