Skip to content
Snippets Groups Projects
Commit 4027e000 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Hide checkbox if user can't edit participation

parent c9618062
No related branches found
No related tags found
1 merge request!460Resolve "Permission bugs with editable list on person statistics page"
......@@ -86,7 +86,7 @@
<v-row class="mr-2">
<v-col cols="12" md="6" class="pa-0 d-flex">
<v-list-item-avatar
v-if="mode === MODE.PARTICIPATIONS"
v-if="mode === MODE.PARTICIPATIONS && showCheckbox(item)"
>
<v-item v-slot="{ active, toggle }" :value="item.id">
<v-simple-checkbox
......@@ -376,6 +376,9 @@ export default {
// Only ExtraMarks can be deleted
return item.canDelete && item.extraMark;
},
showCheckbox(item) {
return this.showEdit(item);
},
},
};
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment