mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	remove dumps
This commit is contained in:
		| @@ -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); | ||||
|  | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user