Commit 35169709 by Jonathan Reinink

Fix bug with demo user check

1 parent 64a51049
Showing with 1 additions and 1 deletions
......@@ -44,7 +44,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
public function isDemoUser()
{
return $user->email === 'johndoe@example.com';
return $this->email === 'johndoe@example.com';
}
public function scopeOrderByName($query)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!