Achievo Community
https://www.atk-framework.com/forum/

Customize Achievo main menu-Remove some menu for nonadmins
https://www.atk-framework.com/forum/viewtopic.php?f=4&t=21725
Page 1 of 1

Author:  brybryan [ Tue Sep 03, 2013 11:43 am ]
Post subject:  Customize Achievo main menu-Remove some menu for nonadmins

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.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/