Added a new argument to the constructor of the account repository which should correctly inject the user.

This commit is contained in:
James Cole
2016-03-03 08:31:18 +01:00
parent fcf16051a2
commit 8008311d9c
5 changed files with 136 additions and 65 deletions

View File

@@ -31,8 +31,10 @@ class CacheProperties
public function __construct()
{
$this->properties = new Collection;
$this->addProperty(Auth::user()->id);
$this->addProperty(Prefs::lastActivity());
if (Auth::check()) {
$this->addProperty(Auth::user()->id);
$this->addProperty(Prefs::lastActivity());
}
}
/**