Author Topic: Store vendor information with limited ACL  (Read 215 times)

n3t

  • Beginner
  • *
  • Posts: 30
  • A beginner
Store vendor information with limited ACL
« 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:
Code: [Select]
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

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 838
  • VirtueMart Version: VM3 on J3
Re: Store vendor information with limited ACL
« Reply #1 on: February 14, 2018, 21:33:34 pm »
Quote
VM 3.2.2

update vm

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9561
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Store vendor information with limited ACL
« Reply #2 on: February 17, 2018, 17:40:09 pm »
if(!vmAccess::manager('core')){

means, you must be admininstrator or superuser
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/