Buyer ACL
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
910caf5689
commit
f29840b37b
|
@ -7,12 +7,14 @@
|
||||||
<vn-item
|
<vn-item
|
||||||
id="clone"
|
id="clone"
|
||||||
ng-click="clone.show()"
|
ng-click="clone.show()"
|
||||||
|
ng-show="::$ctrl.isBuyer"
|
||||||
translate>
|
translate>
|
||||||
Clone travel
|
Clone travel
|
||||||
</vn-item>
|
</vn-item>
|
||||||
<vn-item
|
<vn-item
|
||||||
id="cloneWithEntries"
|
id="cloneWithEntries"
|
||||||
ng-click="cloneWithEntries.show()"
|
ng-click="cloneWithEntries.show()"
|
||||||
|
ng-show="::$ctrl.isBuyer"
|
||||||
translate>
|
translate>
|
||||||
Clone travel and his entries
|
Clone travel and his entries
|
||||||
</vn-item>
|
</vn-item>
|
||||||
|
|
|
@ -48,6 +48,10 @@ class Controller extends Section {
|
||||||
.then(res => this.travel = res.data);
|
.then(res => this.travel = res.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isBuyer() {
|
||||||
|
return this.aclService.hasAny(['buyer']);
|
||||||
|
}
|
||||||
|
|
||||||
onCloneAccept() {
|
onCloneAccept() {
|
||||||
const params = JSON.stringify({
|
const params = JSON.stringify({
|
||||||
ref: this.travel.ref,
|
ref: this.travel.ref,
|
||||||
|
|
Loading…
Reference in New Issue