improve permission checks for timesheets with activated lockdown (#2271)

This commit is contained in:
Kevin Papst
2021-01-17 17:50:37 +01:00
committed by GitHub
parent 8d72d114c7
commit 67d5cba09f
24 changed files with 595 additions and 111 deletions

View File

@@ -25,7 +25,7 @@ class ProjectVoterTest extends AbstractVoterTest
protected function assertVote(User $user, $subject, $attribute, $result)
{
$token = new UsernamePasswordToken($user, 'foo', 'bar', $user->getRoles());
$sut = $this->getVoter(ProjectVoter::class, $user);
$sut = $this->getVoter(ProjectVoter::class);
if ($subject instanceof Project && null === $subject->getCustomer()) {
$subject->setCustomer(new Customer());