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 { ...@@ -128,6 +128,9 @@ export default {
isIssue() { isIssue() {
return this.targetType === 'issue'; return this.targetType === 'issue';
}, },
canAssign() {
return this.getNoteableData.current_user.can_update && this.isIssue;
},
}, },
methods: { methods: {
onEdit() { onEdit() {
...@@ -257,7 +260,7 @@ export default { ...@@ -257,7 +260,7 @@ export default {
{{ __('Copy link') }} {{ __('Copy link') }}
</button> </button>
</li> </li>
<li v-if="isIssue"> <li v-if="canAssign">
<button <button
class="btn-default btn-transparent" class="btn-default btn-transparent"
data-testid="assign-user" 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