This commit is contained in:
@@ -953,10 +953,18 @@ export default {
|
||||
return this.pvm.rights.change && this.pvm.subRights.labors.create;
|
||||
},
|
||||
canDelete: function() {
|
||||
return this.activeItemIndex != null && this.canDeleteAll;
|
||||
return (
|
||||
this.activeItemIndex != null &&
|
||||
this.pvm.rights.change &&
|
||||
this.pvm.subRights.labors.delete
|
||||
);
|
||||
},
|
||||
canDeleteAll: function() {
|
||||
return this.pvm.rights.change && this.pvm.subRights.labors.delete;
|
||||
return (
|
||||
this.pvm.rights.change &&
|
||||
this.pvm.subRights.labors.delete &&
|
||||
!this.value.userIsRestrictedType
|
||||
);
|
||||
}
|
||||
//----
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user