public boolean isTenderDeclineEnabled(ResourceTender resourceTender) {
Resource resource = resourceTender.getResource();
Integer currentUserId = authorizedUserService.getCurrentUserId();
User resourceOwner = resource.getOwner();
Contract contract = resourceTender.getResource().getContract();
ContractStatus contractStatus = contract.getStatus();
if(contractStatus != ContractStatus.UNCOMPLETED && contractStatus != ContractStatus.READY) {
return false;
}
User tenderOwner = resourceTender.getUser();
if(tenderOwner != null && tenderOwner.getId().equals(currentUserId)){