diff --git a/admin-ui/plugins/admin/redux/api/MappingApi.js b/admin-ui/plugins/admin/redux/api/MappingApi.js index c6ddac2a6..01cbec98e 100644 --- a/admin-ui/plugins/admin/redux/api/MappingApi.js +++ b/admin-ui/plugins/admin/redux/api/MappingApi.js @@ -6,7 +6,7 @@ export default class MappingApi { } getMappings = () => { return new Promise((resolve, reject) => { - this.api.getAdminuiRolePermissions((error, data) => { + this.api.getAllAdminuiRolePermissions((error, data) => { handleResponse(error, reject, resolve, data) }) }) diff --git a/admin-ui/plugins/admin/redux/api/PermissionApi.js b/admin-ui/plugins/admin/redux/api/PermissionApi.js index c375ca05e..67600043a 100644 --- a/admin-ui/plugins/admin/redux/api/PermissionApi.js +++ b/admin-ui/plugins/admin/redux/api/PermissionApi.js @@ -6,7 +6,7 @@ export default class PermissionApi { } getPermissions = () => { return new Promise((resolve, reject) => { - this.api.getAdminuiPermissions((error, data) => { + this.api.getAllAdminuiPermissions((error, data) => { handleResponse(error, reject, resolve, data) }) }) @@ -34,7 +34,7 @@ export default class PermissionApi { deletePermission = async (data) => { return new Promise((resolve, reject) => { - this.api.deleteAdminuiPermission(data.permission, (error, data) => { + this.api.deleteAdminuiPermission(encodeURIComponent(data.permission), (error, data) => { handleResponse(error, reject, resolve, data) }) }) diff --git a/admin-ui/plugins/admin/redux/api/RoleApi.js b/admin-ui/plugins/admin/redux/api/RoleApi.js index 8652b1a3a..b6428693f 100644 --- a/admin-ui/plugins/admin/redux/api/RoleApi.js +++ b/admin-ui/plugins/admin/redux/api/RoleApi.js @@ -6,7 +6,7 @@ export default class RoleApi { } getRoles = () => { return new Promise((resolve, reject) => { - this.api.getAdminuiRoles((error, data) => { + this.api.getAllAdminuiRoles((error, data) => { handleResponse(error, reject, resolve, data) }) })