Skip to content

Commit

Permalink
ref: getUsername deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Dec 20, 2023
1 parent b0301d0 commit 8e2cce9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function clean(): RedirectResponse

public function startJob(Job $job, Request $request, UserInterface $user): Response
{
if ($job->getUser() != $user->getUsername()) {
if ($job->getUser() != $user->getUserIdentifier()) {
throw new AccessDeniedHttpException();
}

Expand Down Expand Up @@ -128,7 +128,7 @@ public function startNextJob(Request $request, UserInterface $user, string $tag)
{
$job = $this->jobService->nextJob($tag);
if (null === $job) {
$job = $this->jobService->nextJobScheduled($user->getUsername(), $tag);
$job = $this->jobService->nextJobScheduled($user->getUserIdentifier(), $tag);
}

if (null === $job) {
Expand Down

0 comments on commit 8e2cce9

Please sign in to comment.