Commit 5e937896 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Do not show edit button if user has no privilege

parent ac79d21e
......@@ -83,7 +83,10 @@ export default {
:class="rowClass"
>
<div class="controls">
<a class="edit-group btn" :href="group.editPath">
<a
v-show="group.canEdit"
class="edit-group btn"
:href="group.editPath">
<i aria-hidden="true" class="fa fa-cogs"></i>
</a>
<a @click="onLeaveGroup"
......
......@@ -117,6 +117,7 @@ export default class GroupsStore {
fullName: rawGroup.full_name,
fullPath: rawGroup.full_path,
name: rawGroup.name,
canEdit: rawGroup.can_edit,
description: rawGroup.description,
webUrl: rawGroup.web_url,
parentId: rawGroup.parent_id,
......
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