Skip to content
Snippets Groups Projects
Commit 03ee0b83 authored by Moreau Elise's avatar Moreau Elise
Browse files

bug correction with id

parent 866b8d89
Branches
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ class AddUserGroupAction extends GroupAction ...@@ -22,7 +22,7 @@ class AddUserGroupAction extends GroupAction
} }
$currentUser = $this->userRepository->find($_SESSION['userId']); $currentUser = $this->userRepository->find($_SESSION['userId']);
if ($this->group->hasUser($currentUser)){ if ($group->hasUser($_SESSION['userId'])){
return $this->response return $this->response
->withHeader('Location', '/groups/' . $groupId) ->withHeader('Location', '/groups/' . $groupId)
->withStatus(302); ->withStatus(302);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment