This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
//----
|
||||
|
||||
Reference in New Issue
Block a user