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; return this.value.items[this.activeWoItemIndex].scheduledUsers.length > 1;
}, },
canAdd: function() { canAdd: function() {
return ( return this.pvm.rights.change && this.pvm.subRights.scheduledUsers.create;
!this.value.isLockedAtServer &&
this.pvm.rights.change &&
this.pvm.subRights.scheduledUsers.create
);
}, },
canDelete: function() { canDelete: function() {
return ( return (
this.activeItemIndex != null && this.activeItemIndex != null &&
!this.value.isLockedAtServer &&
this.pvm.rights.change && this.pvm.rights.change &&
this.pvm.subRights.scheduledUsers.delete this.pvm.subRights.scheduledUsers.delete
); );