How to remove Joomla User Option?

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

Hi there,

In the customer info setting, there is a button on the right top toolbar called "Joomla user option".





I found if the person is a "manager" of back end, he/she is able to change his/her group to "Super Administrator" from this button.

Is it a bug? or How could I solve the problem?


I am thinking of removing this button, how can I do it?

Thank you so much. :)

Attachments:

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #82873

You can set permissions with Business Edition (I am guessing that "Joomla user option" would cover this)


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

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

Hi,

Yes I am using Business Version.

My problem is I hope to let the "manager" see "customer info".( But he cannot change his user group. )

So that's why I hope to remove this button. :)

Last edit: 11 years 10 months ago by tinachou.

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #82879

Removing the button would remove it for all (unless via some major customization)

Might need to do it at Joomla ACL - can prevent him from changing user group


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

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

Hi,

Do you know where is the code of the button? I just cannot find it.

Thank you so much. :)

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

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

Hi,

You can edit the views/user/view.html.php and change the toolbar options:

		$this->toolbar = array(
			array('name' => 'link', 'icon' => 'upload', 'alt' => JText::_('JOOMLA_USER_OPTIONS'), 'url' => $url_link,'display'=>!empty($user->user_cms_id)),
			array('name' => 'popup', 'icon' => 'send', 'alt' => JText::_('HIKA_EMAIL'), 'url' => $email_link,'display'=>!empty($user_id)),
			'save',
			'apply',
			'cancel',
			'|',
			array('name' => 'pophelp', 'target' => $this->ctrl.'-form')
		);
by removing the first line.
But this modification is not compatible with updates.
So the best solution in order to have a real compatibility with updates is to create a little plugin and plugged on the trigger onHikashopBeforeDisplayView.
I will see to implement a little function in order to let this modification easier to do.

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.

Time to create page: 0.079 seconds
Powered by Kunena Forum