improve permission checks for timesheets with activated lockdown (#2271)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user