Skip to content
Snippets Groups Projects
Commit 76261656 authored by Ron Lucke's avatar Ron Lucke Committed by Marcus Eibrink-Lunzenauer
Browse files

Biest #1651

Closes #1651

Merge request studip/studip!1098
parent 66bbd2b1
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
<translate>Seite bearbeiten</translate>
</button>
</li>
<li v-if="canEdit && blockedByAnotherUser" class="cw-action-widget-remove-lock">
<li v-if="canEdit && blockedByAnotherUser && userIsTeacher" class="cw-action-widget-remove-lock">
<button @click="removeElementLock">
<translate>Sperre aufheben</translate>
</button>
......@@ -63,6 +63,7 @@ export default {
computed: {
...mapGetters({
userId: 'userId',
userIsTeacher: 'userIsTeacher',
consumeMode: 'consumeMode',
showToolbar: 'showToolbar',
......
......@@ -79,7 +79,7 @@
mood="pointing"
>
<template #companionActions>
<button class="button" @click="menuAction('removeLock')">
<button v-if="userIsTeacher" class="button" @click="menuAction('removeLock')">
{{ textRemoveLock.title }}
</button>
</template>
......@@ -836,7 +836,7 @@ export default {
{ id: 5, label: this.$gettext('Lesezeichen setzen'), icon: 'star', emit: 'setBookmark' },
];
if (this.canEdit) {
if (!this.blocked) {
if (!this.blockedByAnotherUser) {
menu.push({
id: 1,
label: this.$gettext('Seite bearbeiten'),
......@@ -850,7 +850,7 @@ export default {
emit: 'sortContainers',
});
}
if (this.blocked && this.blockedByAnotherUser && this.userIsTeacher) {
if (this.blockedByAnotherUser && this.userIsTeacher) {
menu.push({
id: 1,
label: this.textRemoveLock.title,
......
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