This commit is contained in:
2021-07-14 23:55:43 +00:00
parent baeaa99351
commit 019e6fcf01
10 changed files with 120 additions and 26 deletions

View File

@@ -373,13 +373,21 @@ export default {
return this.activeItemIndex != null;
},
// canAdd: function() {
// return this.pvm.rights.change && this.pvm.subRights.partRequests.create;
// return this.pvm.rights.change && this.pvm.subRights.partRequests.create && !this.value.userIsRestrictedType;
// },
canDelete: function() {
return this.activeItemIndex != null && this.canDeleteAll;
return (
this.activeItemIndex != null &&
this.canDeleteAll &&
!this.value.userIsRestrictedType
);
},
canDeleteAll: function() {
return this.pvm.rights.change && this.pvm.subRights.partRequests.delete;
return (
this.pvm.rights.change &&
this.pvm.subRights.partRequests.delete &&
!this.value.userIsRestrictedType
);
}
//----