mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-05 23:39:52 +00:00
remove dumps
This commit is contained in:
parent
8844e3e64a
commit
034269b87c
@ -166,12 +166,10 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH
|
||||
|
||||
if (AccompanyingPeriod::STEP_DRAFT === $subject->getStep()) {
|
||||
// only creator can see, edit, delete, etc.
|
||||
dump($subject->getCreatedBy());
|
||||
if (
|
||||
$subject->getCreatedBy() === $token->getUser()
|
||||
|| null === $subject->getCreatedBy()
|
||||
) {
|
||||
dump('i am true');
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -215,7 +213,8 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH
|
||||
return $token->getUser() === $subject->getUser();
|
||||
}
|
||||
}
|
||||
dump($this->voterHelper->voteOnAttribute($attribute, $subject, $token));
|
||||
|
||||
return $this->voterHelper->voteOnAttribute($attribute, $subject, $token);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user