From 048065b76ac3528a8fa802367aa2750c22487f6c Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 24 Jan 2017 18:41:27 +0500 Subject: - Polish permissions - Makeup imports --- web/app/view/UsersController.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/app/view/UsersController.js') diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js index 8aaa839..68e49f8 100644 --- a/web/app/view/UsersController.js +++ b/web/app/view/UsersController.js @@ -40,6 +40,12 @@ Ext.define('Traccar.view.UsersController', { onAddClick: function () { var user, dialog; user = Ext.create('Traccar.model.User'); + if (Traccar.app.getUser().get('admin')) { + user.set('deviceLimit', -1); + } + if (Traccar.app.getUser().get('expirationTime')) { + user.set('expirationTime', Traccar.app.getUser().get('expirationTime')); + } dialog = Ext.create('Traccar.view.UserDialog'); dialog.down('form').loadRecord(user); dialog.show(); -- cgit v1.2.3