How to hide the toolbar for safety issue

  • Posts: 107
  • Thank you received: 1
11 years 11 months ago #80327

Hi there,

How can I remove or hide the toolbar/menu of hikashop to prevent the mis-configuration and mis-setting by people who are not familiar with
hikashop? Refer to:



For some people, they only need to edit the product info page so there is no need to expose the Hikashop setting toolbar.

Thank you so much. :)

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #80367

Hi,

You can manage the user Access level in HikaShop > Configuration > ACL.
If you forbid something, the menu will not be displayed.

Please Log in or Create an account to join the conversation.

  • Posts: 107
  • Thank you received: 1
11 years 11 months ago #80423

HI,

Is this function in the Business Version?

Thank you very much. :)

Please Log in or Create an account to join the conversation.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #80433

Hi,

Yes the ACL configuration is in the Business version.
Otherwise you can edit the view "menu | default" of the backend.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 107
  • Thank you received: 1
11 years 11 months ago #81340

Hi there,

I tried to tune the ACL setting in the business version. However, it looks like the access level of all the items in the toolbar cannot be separately tuned? It seems there are some bundling...and I am confused.

For example, I have set the "documentation" can only be seen by Super User, but when I log in as a administrator or manager,I can still see "documentation" and "update"..in the top toolbar.


I hope to directly change the menu|default, and just show "order state" and "product info".

I have tried to make different people see different things in the Joomla Back end by adding an additional criteria in the back end template.php such like,

$groups=$user->get('groups');
$isSuperUser=in_array(8,$groups);

if($user->authorise('core.manage','com_users') && ($isSuperUser))
{
	//SOME CODE
}

I wonder if I could do the same in menu|default and let the toolbar only shows "order state" and "product categories and info"?
Where should I add the code?

Thank you so much. :)

Last edit: 11 years 11 months ago by tinachou.

Please Log in or Create an account to join the conversation.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #81546

Hi,

You can edit the view "menu | default" and edit the content of the array "$this->menus".
This variable contains all the menu items (and subitems).
You can do a "var_dump($this->menus);" in order to see the variable content and to your specific code in order to unset some items.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: tinachou

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum