diff options
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) { |