mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-24 20:46:38 +00:00
sync_handler_merge
This commit is contained in:
@@ -64,6 +64,10 @@ erpnext.startup.start = function() {
|
||||
// always allow apps
|
||||
wn.boot.profile.allow_modules = wn.boot.profile.allow_modules.concat(
|
||||
['To Do', 'Knowledge Base', 'Calendar', 'Activity', 'Messages'])
|
||||
// allow dashboard to accounts manager
|
||||
if(user_roles.indexOf('Accounts Manager')!=-1) {
|
||||
wn.boot.profile.allow_modules.push('Dashboard');
|
||||
}
|
||||
|
||||
// setup toolbar
|
||||
erpnext.toolbar.setup();
|
||||
|
||||
Reference in New Issue
Block a user