From f29840b37b368f878dc4b4c9453eed94946091f0 Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 29 Dec 2020 07:52:36 +0100 Subject: [PATCH] Buyer ACL --- modules/travel/front/descriptor-menu/index.html | 2 ++ modules/travel/front/descriptor-menu/index.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/modules/travel/front/descriptor-menu/index.html b/modules/travel/front/descriptor-menu/index.html index 714d3ce3f..171aa89ec 100644 --- a/modules/travel/front/descriptor-menu/index.html +++ b/modules/travel/front/descriptor-menu/index.html @@ -7,12 +7,14 @@ Clone travel Clone travel and his entries diff --git a/modules/travel/front/descriptor-menu/index.js b/modules/travel/front/descriptor-menu/index.js index e83a90b97..d34c5495b 100644 --- a/modules/travel/front/descriptor-menu/index.js +++ b/modules/travel/front/descriptor-menu/index.js @@ -48,6 +48,10 @@ class Controller extends Section { .then(res => this.travel = res.data); } + get isBuyer() { + return this.aclService.hasAny(['buyer']); + } + onCloneAccept() { const params = JSON.stringify({ ref: this.travel.ref,