diff --git a/ayanova/src/api/biz-role-rights.js b/ayanova/src/api/biz-role-rights.js index 5a41491a..d359a206 100644 --- a/ayanova/src/api/biz-role-rights.js +++ b/ayanova/src/api/biz-role-rights.js @@ -100,7 +100,7 @@ export default { User: { Change: 2, ReadFullRecord: 1, Select: 131071 }, UserOptions: { Change: 2, ReadFullRecord: 1, Select: 0 }, ServerState: { Change: 16384, ReadFullRecord: 131071, Select: 0 }, - License: { Change: 2, ReadFullRecord: 1, Select: 0 }, + License: { Change: 2, ReadFullRecord: 49515, Select: 0 }, TrialSeeder: { Change: 16386, ReadFullRecord: 8193, Select: 0 }, LogFile: { Change: 0, ReadFullRecord: 24576, Select: 0 }, Backup: { Change: 16384, ReadFullRecord: 8195, Select: 0 }, diff --git a/ayanova/src/api/open-object-handler.js b/ayanova/src/api/open-object-handler.js index 747228a8..01a00500 100644 --- a/ayanova/src/api/open-object-handler.js +++ b/ayanova/src/api/open-object-handler.js @@ -496,6 +496,12 @@ export default { name: "ops-notification-settings" }); break; + case ayatype.Integration: + vm.$router.push({ + name: "adm-integration", + params: { recordid: tid.id } + }); + break; default: window.$gz.eventBus.$emit( diff --git a/ayanova/src/views/adm-integration.vue b/ayanova/src/views/adm-integration.vue index 16bda17e..1e9790bd 100644 --- a/ayanova/src/views/adm-integration.vue +++ b/ayanova/src/views/adm-integration.vue @@ -166,7 +166,9 @@ export default { } try { window.$gz.form.deleteAllErrorBoxErrors(vm); - const res = await window.$gz.api.get(API_BASE_URL + recordId); + const res = await window.$gz.api.get( + API_BASE_URL + "/by-dbid/" + recordId + ); if (res.error) { if (res.error.code == "2010") { window.$gz.form.handleObjectNotFound(vm); @@ -251,7 +253,7 @@ export default { JUST_DELETED = true; this.$router.go(-1); } else { - const url = API_BASE_URL + this.$route.params.recordid; + const url = API_BASE_URL + "/by-dbid/" + this.$route.params.recordid; window.$gz.form.deleteAllErrorBoxErrors(this); const res = await window.$gz.api.remove(url); if (res.error) { @@ -270,15 +272,6 @@ export default { loading: false }); } - }, - duplicate() { - this.$router.push({ - name: "integration-edit", - params: { - recordid: 0, - obj: this.obj - } - }); } } };