diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-08 23:19:30 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-08 23:19:30 +1300 |
commit | c0d07811425497f10e41519e090f02cfdffb3c9a (patch) | |
tree | 6531e75e7e3294b3f4fee26e397f13229e89e507 /web/app | |
parent | e2da4f276230e3687e42b11b4d94889fb3889436 (diff) | |
download | trackermap-server-c0d07811425497f10e41519e090f02cfdffb3c9a.tar.gz trackermap-server-c0d07811425497f10e41519e090f02cfdffb3c9a.tar.bz2 trackermap-server-c0d07811425497f10e41519e090f02cfdffb3c9a.zip |
Refactor device permissions resource
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/view/UserDevicesController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/UserDevicesController.js b/web/app/view/UserDevicesController.js index 4f013fd64..e5dbbdbb8 100644 --- a/web/app/view/UserDevicesController.js +++ b/web/app/view/UserDevicesController.js @@ -47,7 +47,7 @@ Ext.define('Traccar.view.UserDevicesController', { onBeforeSelect: function (object, record, index) { Ext.Ajax.request({ scope: this, - url: '/api/permissions', + url: '/api/permissions/devices', jsonData: { userId: this.userId, deviceId: record.getData().id @@ -64,7 +64,7 @@ Ext.define('Traccar.view.UserDevicesController', { Ext.Ajax.request({ scope: this, method: 'DELETE', - url: '/api/permissions', + url: '/api/permissions/devices', jsonData: { userId: this.userId, deviceId: record.getData().id |