VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: ermes on March 07, 2019, 17:51:14 PM

Title: Help with Virtuemart vmAccess::manager()
Post by: ermes on March 07, 2019, 17:51:14 PM
Hi forum, i'm writing a component for joomla and virtuemart based on com_api. This is a rest interface to import products, categories and manufacturers. I want use only virtuemart models function an all warks fine (login as admin, get products, categories etc..) but when i call $modelCategory->store($category_array) vmAccess::manager('category.edit') return false.
How can i comunicate to virtuemart that i'm the superuser? I'm trying to debug the vm code but i can't find the code that do it already.
Can you help me please?
Title: Re: Help with Virtuemart vmAccess::manager()
Post by: Milbo on March 11, 2019, 10:43:48 AM
VM uses the joomla rights, so you must check our ACL in joomla. There are more than 100 rights to set in joomla for VM.