This commit is contained in:
@@ -1080,15 +1080,23 @@ export default {
|
||||
},
|
||||
canAdd: function() {
|
||||
return (
|
||||
this.pvm.rights.change && this.pvm.subRights.outsideServices.create
|
||||
this.pvm.rights.change &&
|
||||
this.pvm.subRights.outsideServices.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.outsideServices.delete
|
||||
this.pvm.rights.change &&
|
||||
this.pvm.subRights.outsideServices.delete &&
|
||||
!this.value.userIsRestrictedType
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user