Skip to content
Snippets Groups Projects
Commit 225a8fdb authored by Ron Lucke's avatar Ron Lucke
Browse files

Biest #1651

Closes #1651

Merge request studip/studip!1098
parent bef8f990
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
{{ $gettext('Seite bearbeiten') }} {{ $gettext('Seite bearbeiten') }}
</button> </button>
</li> </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"> <button @click="removeElementLock">
{{ $gettext('Sperre aufheben') }} {{ $gettext('Sperre aufheben') }}
</button> </button>
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
computed: { computed: {
...mapGetters({ ...mapGetters({
userId: 'userId', userId: 'userId',
userIsTeacher: 'userIsTeacher',
consumeMode: 'consumeMode', consumeMode: 'consumeMode',
showToolbar: 'showToolbar', showToolbar: 'showToolbar',
context: 'context', context: 'context',
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
mood="pointing" mood="pointing"
> >
<template #companionActions> <template #companionActions>
<button class="button" @click="menuAction('removeLock')"> <button v-if="userIsTeacher" class="button" @click="menuAction('removeLock')">
{{ textRemoveLock.title }} {{ textRemoveLock.title }}
</button> </button>
</template> </template>
...@@ -963,7 +963,7 @@ export default { ...@@ -963,7 +963,7 @@ export default {
]; ];
if (this.canEdit) { if (this.canEdit) {
if (!this.blocked) { if (!this.blockedByAnotherUser) {
menu.push({ menu.push({
id: 1, id: 1,
label: this.$gettext('Seite bearbeiten'), label: this.$gettext('Seite bearbeiten'),
...@@ -977,7 +977,7 @@ export default { ...@@ -977,7 +977,7 @@ export default {
emit: 'sortContainers', emit: 'sortContainers',
}); });
} }
if (this.blocked && this.blockedByAnotherUser && this.userIsTeacher) { if (this.blockedByAnotherUser && this.userIsTeacher) {
menu.push({ menu.push({
id: 1, id: 1,
label: this.textRemoveLock.title, 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