All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
  Print view

Customize Achievo main menu-Remove some menu for nonadmins
Author Message
PostPosted: Tue Sep 03, 2013 11:43 am 
Offline

Joined: Tue Sep 03, 2013 10:54 am
Posts: 1
Hi I would like to remove the "Scheduler","Reports","Sales" menu item for non-admin users.

just like the way klaaspeter did in this viewtopic.php?f=4&t=21257

I'm trying to do something like this in module.inc

function getNodes()
{
registerNode("setup.setup",array('view'));
registerNode("scheduler.schedulers",array('view'));
registerNode("reports.reports",array('view'));
registerNode("sales.sales",array('view'));

}

function getMenuItems()
{
$this->menuitem("setup","","main",array("setup.setup", "view"),700);
$this->menuitem("scheduler","","main",array("scheduler.schedulers", "view"),100);
$this->menuitem("reports","","main",array("report.report", "view"),200);
$this->menuitem("sales","","main",array("sales.sales", "view"),400);
.
.
.
}

but it doesn't work,would somebody tell me why?

Thanks a lot

Bryan.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group