This commit is contained in:
@@ -627,11 +627,7 @@ export default {
|
||||
return this.activeItemIndex != null;
|
||||
},
|
||||
canAdd: function() {
|
||||
return (
|
||||
this.pvm.rights.change &&
|
||||
this.pvm.subRights.tasks.create &&
|
||||
!this.value.userIsRestrictedType
|
||||
);
|
||||
return this.pvm.rights.change && !this.value.userIsRestrictedType;
|
||||
},
|
||||
canDelete: function() {
|
||||
return (
|
||||
@@ -641,11 +637,7 @@ export default {
|
||||
);
|
||||
},
|
||||
canDeleteAll: function() {
|
||||
return (
|
||||
this.pvm.rights.change &&
|
||||
this.pvm.subRights.tasks.delete &&
|
||||
!this.value.userIsRestrictedType
|
||||
);
|
||||
return this.pvm.rights.change && !this.value.userIsRestrictedType;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user