Commit 2c6ec196 authored by jakeburden's avatar jakeburden

Only show assign button to users who can edit issues

parent cded1bcd
......@@ -128,6 +128,9 @@ export default {
isIssue() {
return this.targetType === 'issue';
},
canAssign() {
return this.getNoteableData.current_user.can_update && this.isIssue;
},
},
methods: {
onEdit() {
......@@ -257,7 +260,7 @@ export default {
{{ __('Copy link') }}
</button>
</li>
<li v-if="isIssue">
<li v-if="canAssign">
<button
class="btn-default btn-transparent"
data-testid="assign-user"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment