mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Add ValidationParticipant::isReleasable method
This commit is contained in:
@@ -256,4 +256,24 @@ class ValidationParticipant
|
||||
return $this->can_see_others;
|
||||
}
|
||||
|
||||
public function isReleasable()
|
||||
{
|
||||
|
||||
if ($this->getIsConfirmed())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach ($this->getDatas() as $validation_data)
|
||||
{
|
||||
/* @var $validation_data \Entities\ValidationData */
|
||||
if ($validation_data->getAgreement() === null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user