Commit 3fbea03c authored by Nicolas Widart's avatar Nicolas Widart

Returning the current user if logged in

parent d8034c8f
......@@ -148,6 +148,9 @@ class SentryAuthentication implements Authentication
*/
public function check()
{
return Sentry::check();
if (Sentry::check()) {
return Sentry::getUser();
}
return false;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment