how to access to Menu-managers 'rebuild menu' button?

Moderators: mandville, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
User avatar
carsten888
Joomla! Ace
Joomla! Ace
Posts: 1224
Joined: Sat Feb 11, 2006 8:32 am
Contact:

how to access to Menu-managers 'rebuild menu' button?

Post by carsten888 » Wed Jun 01, 2016 5:20 pm

I'm trying to give a manager access to the Menu-managers 'rebuild menu' button. They get access to the menu-manager, but can't see the button, even if all access is given to the manager group.
http://www.pages-and-items.com my extensions:
User-Private-Page, Redirect-on-Login, Admin-Help-Pages, Dynamic-Menu-Links, Admin-Menu-Manager, plugin load module in article, plugin pure css tooltip and more...

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: how to access to Menu-managers 'rebuild menu' button?

Post by itoctopus » Wed Jun 01, 2016 10:05 pm

I think they need to be a super user in order to do that. This is the condition from the categories view:

Code: Select all

if ($canDo->get('core.admin'))
{
	JToolbarHelper::custom('categories.rebuild', 'refresh.png', 'refresh_f2.png', 'JTOOLBAR_REBUILD', false);
}
core.admin technically means those with super user access.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

User avatar
carsten888
Joomla! Ace
Joomla! Ace
Posts: 1224
Joined: Sat Feb 11, 2006 8:32 am
Contact:

Re: how to access to Menu-managers 'rebuild menu' button?

Post by carsten888 » Thu Jun 02, 2016 8:18 am

Ooooh, thats a shame. Also managers are quite capable of messing up a menu ;)

I guess I have to write my own little component, which managers have access to, to call that function so managers won't call me at night to press that button whenever the menu goes crazy again.
http://www.pages-and-items.com my extensions:
User-Private-Page, Redirect-on-Login, Admin-Help-Pages, Dynamic-Menu-Links, Admin-Menu-Manager, plugin load module in article, plugin pure css tooltip and more...

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: how to access to Menu-managers 'rebuild menu' button?

Post by itoctopus » Thu Jun 02, 2016 10:45 am

If your menu is "going crazy" every now and then, then this means that there is some data corruption somewhere in the #__menu table. Rebuilding the menu in the cron is not the solution, as sometimes rebuilding the menu can cause a mess.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

User avatar
carsten888
Joomla! Ace
Joomla! Ace
Posts: 1224
Joined: Sat Feb 11, 2006 8:32 am
Contact:

Re: how to access to Menu-managers 'rebuild menu' button?

Post by carsten888 » Thu Jun 02, 2016 11:13 am

Yes. I suspect that during a migration something in #__menu gone corrupt. But if Joomla's own 'rebuild menu' functionality can't fix it, I have no idea of how to fix that. Given up on that looooong time ago. Hoping that with a migration/update, one day, all of a sudden, it will all be fixed.
http://www.pages-and-items.com my extensions:
User-Private-Page, Redirect-on-Login, Admin-Help-Pages, Dynamic-Menu-Links, Admin-Menu-Manager, plugin load module in article, plugin pure css tooltip and more...


Locked

Return to “Access Control List (ACL) in Joomla! 3.x”