News:

Support the VirtueMart project and become a member

Main Menu

administrator and user modify in vm

Started by Pirosoft, October 01, 2012, 12:47:38 PM

Previous topic - Next topic

Pirosoft

Hi, i don't know why, but when a administrator (no super user) go to user management in vm can't update the user info of other users. Can i change this? is a bug?

thanks for your help

Pirosoft

ok, maybe i found a little bug!
in administrator/components/com_virtuemart/controllers/user.php
it's the line:
if (!$_currentUser->authorize('com_users', 'manage')) {
but:
1) authorize is deprecated, must use authorise
2) the call in the file is authorize('com_users', 'manage'), but is incorrect, i change in:
if (!$_currentUser->authorise('core.manage', 'com_users')) {
and don't give me more problems!

thanks