diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-04-27 17:06:57 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-04-27 17:06:57 +1200 |
commit | 7e1ed7fee9ec411df0d198d10dc1a7f8e0e6eaf9 (patch) | |
tree | 8bb2e2bcf0f16223b3feb031dc537507f3f4ae3f /web/app/view/edit/UsersController.js | |
parent | bc4913524b5202b0244fe636d6d59b269fef2e1d (diff) | |
download | trackermap-web-7e1ed7fee9ec411df0d198d10dc1a7f8e0e6eaf9.tar.gz trackermap-web-7e1ed7fee9ec411df0d198d10dc1a7f8e0e6eaf9.tar.bz2 trackermap-web-7e1ed7fee9ec411df0d198d10dc1a7f8e0e6eaf9.zip |
Rename admin to administrator
Diffstat (limited to 'web/app/view/edit/UsersController.js')
-rw-r--r-- | web/app/view/edit/UsersController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/edit/UsersController.js b/web/app/view/edit/UsersController.js index f3154b1a..9d998162 100644 --- a/web/app/view/edit/UsersController.js +++ b/web/app/view/edit/UsersController.js @@ -42,7 +42,7 @@ Ext.define('Traccar.view.edit.UsersController', { init: function () { Ext.getStore('Users').load(); - this.lookupReference('userUsersButton').setHidden(!Traccar.app.getUser().get('admin')); + this.lookupReference('userUsersButton').setHidden(!Traccar.app.getUser().get('administrator')); this.lookupReference('userDriversButton').setHidden( Traccar.app.getVehicleFeaturesDisabled() || Traccar.app.getBooleanAttributePreference('ui.disableDrivers')); this.lookupReference('userAttributesButton').setHidden( @@ -66,7 +66,7 @@ Ext.define('Traccar.view.edit.UsersController', { onAddClick: function () { var user, dialog; user = Ext.create('Traccar.model.User'); - if (Traccar.app.getUser().get('admin')) { + if (Traccar.app.getUser().get('administrator')) { user.set('deviceLimit', -1); } if (Traccar.app.getUser().get('expirationTime')) { |