@@ -79,11 +79,11 @@ |
||
79 | 79 | { |
80 | 80 | $auth = $request->getHeaderLine('Authorization'); |
81 | 81 | if(empty($auth)) |
82 | - { |
|
82 | + { |
|
83 | 83 | $request = $request->withAttribute('user', $this->getUserFromSession()); |
84 | 84 | } |
85 | 85 | else |
86 | - { |
|
86 | + { |
|
87 | 87 | $request = $request->withAttribute('user', $this->getUserFromHeader($auth)); |
88 | 88 | } |
89 | 89 | $response = $next($request, $response); |
@@ -79,11 +79,11 @@ |
||
79 | 79 | { |
80 | 80 | $auth = $request->getHeaderLine('Authorization'); |
81 | 81 | if(empty($auth)) |
82 | - { |
|
82 | + { |
|
83 | 83 | $request = $request->withAttribute('user', $this->getUserFromSession()); |
84 | 84 | } |
85 | 85 | else |
86 | - { |
|
86 | + { |
|
87 | 87 | $request = $request->withAttribute('user', $this->getUserFromHeader($auth)); |
88 | 88 | } |
89 | 89 | $response = $next($request, $response); |