diff options
author | Abyss777 <abyss@fox5.ru> | 2017-07-21 11:26:53 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-07-21 11:26:53 +0500 |
commit | ad74d97866a4c39c90ae2577be204d0f43933a7b (patch) | |
tree | 0b4deb48693a9eb62a619e545454dc8750f2d859 /web/app/view/permissions/BaseController.js | |
parent | fa5f3054efe7ca926f49f19da45013e1cf1ed81c (diff) | |
download | trackermap-web-ad74d97866a4c39c90ae2577be204d0f43933a7b.tar.gz trackermap-web-ad74d97866a4c39c90ae2577be204d0f43933a7b.tar.bz2 trackermap-web-ad74d97866a4c39c90ae2577be204d0f43933a7b.zip |
Use singe path for permissions
Diffstat (limited to 'web/app/view/permissions/BaseController.js')
-rw-r--r-- | web/app/view/permissions/BaseController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/permissions/BaseController.js b/web/app/view/permissions/BaseController.js index 8a85a5e2..860a29b3 100644 --- a/web/app/view/permissions/BaseController.js +++ b/web/app/view/permissions/BaseController.js @@ -53,7 +53,7 @@ Ext.define('Traccar.view.permissions.BaseController', { data[this.getView().linkObjectName] = record.getId(); Ext.Ajax.request({ scope: this, - url: this.getView().urlApi, + url: 'api/permissions', jsonData: Ext.util.JSON.encode(data), callback: function (options, success, response) { if (!success) { @@ -71,7 +71,7 @@ Ext.define('Traccar.view.permissions.BaseController', { Ext.Ajax.request({ scope: this, method: 'DELETE', - url: this.getView().urlApi, + url: 'api/permissions', jsonData: Ext.util.JSON.encode(data), callback: function (options, success, response) { if (!success) { |