desktop items fix
This commit is contained in:
parent
1dd50118f0
commit
d5e93cd33e
1 changed files with 7 additions and 0 deletions
|
|
@ -64,6 +64,13 @@ $.extend(wn.user, {
|
|||
}
|
||||
}
|
||||
},
|
||||
get_desktop_items: function() {
|
||||
var user_list = wn.user.get_default("_desktop_items");
|
||||
if(user_list && user_list.length)
|
||||
return user_list;
|
||||
else
|
||||
return wn.boot.modules_list;
|
||||
},
|
||||
is_report_manager: function() {
|
||||
return wn.user.has_role(['Administrator', 'System Manager', 'Report Manager']);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue