Skip to content

Commit

Permalink
fix action button show (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
QSummerY authored Jan 6, 2023
1 parent 8de3e4f commit cd677b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/pages/ticket/_id/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export default {
}
},
showActionButtons () {
if (this.ticketInfo.status === 'pending' && this.$store.getters.isAdmin) {
if (this.ticketInfo.status === 'pending' && (this.$store.getters.isAdmin || this.ticketAnnotation.approvers.includes(this.$store.state.userProfile.name))) {
return true
}
return false
Expand Down

0 comments on commit cd677b1

Please sign in to comment.