diff options
author | Abyss777 <abyss@fox5.ru> | 2017-01-27 08:54:29 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-01-27 08:54:29 +0500 |
commit | aec5f5b0f0b00492742919358a9aaa03e72e3a5b (patch) | |
tree | 8f21be14483804a8ed945432cfaf78f3fe97fde7 /web/app/view | |
parent | 048065b76ac3528a8fa802367aa2750c22487f6c (diff) | |
download | trackermap-web-aec5f5b0f0b00492742919358a9aaa03e72e3a5b.tar.gz trackermap-web-aec5f5b0f0b00492742919358a9aaa03e72e3a5b.tar.bz2 trackermap-web-aec5f5b0f0b00492742919358a9aaa03e72e3a5b.zip |
Determine manager correctly
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/SettingsMenuController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js index 5dcc722f..16813fa6 100644 --- a/web/app/view/SettingsMenuController.js +++ b/web/app/view/SettingsMenuController.js @@ -37,7 +37,7 @@ Ext.define('Traccar.view.SettingsMenuController', { init: function () { var admin, manager, readonly, deviceReadonly; admin = Traccar.app.getUser().get('admin'); - manager = Traccar.app.getUser().get('userLimit') > 0; + manager = Traccar.app.getUser().get('userLimit') !== 0; readonly = Traccar.app.getPreference('readonly', false); deviceReadonly = Traccar.app.getUser().get('deviceReadonly'); if (admin) { |