From aec5f5b0f0b00492742919358a9aaa03e72e3a5b Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 27 Jan 2017 08:54:29 +0500 Subject: Determine manager correctly --- web/app/view/SettingsMenuController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app/view') 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) { -- cgit v1.2.3