fix logic bugs

This commit is contained in:
Antonio Ramirez
2017-06-15 01:27:19 +02:00
parent 6d1b01fc1c
commit 53a3a72cc5
3 changed files with 9 additions and 5 deletions

View File

@ -64,10 +64,13 @@ class AuthItemEditionService implements ServiceInterface
$this->model->item = $item;
return $this->updateChildren();
$this->updateChildren();
} catch (Exception $e) {
return false;
}
return true;
}
/**

View File

@ -28,7 +28,7 @@ class UpdateAuthAssignmentsService implements ServiceInterface
public function run()
{
if ($this->model->validate()) {
if (!$this->model->validate()) {
return false;
}