This commit is contained in:
2021-04-13 17:41:27 +00:00
parent 1297df7884
commit d3ef0d8ad2

View File

@@ -287,16 +287,11 @@ export default {
return this.value.items[this.activeWoItemIndex].scheduledUsers.length > 1;
},
canAdd: function() {
return (
!this.value.isLockedAtServer &&
this.pvm.rights.change &&
this.pvm.subRights.scheduledUsers.create
);
return this.pvm.rights.change && this.pvm.subRights.scheduledUsers.create;
},
canDelete: function() {
return (
this.activeItemIndex != null &&
!this.value.isLockedAtServer &&
this.pvm.rights.change &&
this.pvm.subRights.scheduledUsers.delete
);