VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: n3t on February 13, 2018, 02:15:58 AM

Title: Store vendor information with limited ACL
Post by: n3t on February 13, 2018, 02:15:58 AM
Hi,

I configured store owner user as limited user, with limited ACL. User can open store settings, but when he save it, nothing changes.
After long searching I found, that also "Configure ACL & Options" permission has to be set for this user to store the vendor info.
However now the user himself can change his ACL, so open additional parts of VM.

In saveUserData of VirtueMartModelUser this is checked:

if(!vmAccess::manager('core')){
unset($data['virtuemart_vendor_id']);
unset($data['user_is_vendor']);
}


This limitation is IMHO at least very confusing, as there is special ACL for edit shop function. Why Permissions ACL is required?

thanks

Joomla 3.8.5, VM 3.2.2 single vendor mode
Title: Re: Store vendor information with limited ACL
Post by: K&K media production on February 14, 2018, 21:33:34 PM
QuoteVM 3.2.2

update vm
Title: Re: Store vendor information with limited ACL
Post by: Milbo on February 17, 2018, 17:40:09 PM
if(!vmAccess::manager('core')){

means, you must be admininstrator or superuser