Layout updates, switch user updates

This commit is contained in:
Deon George
2018-08-01 16:28:10 +10:00
parent 444c159ab9
commit 0bd32aab4a
7 changed files with 19 additions and 14 deletions

View File

@@ -9,13 +9,13 @@ use Session;
trait UserSwitch
{
public function GetIsAdminAttribute()
{
return isset($this->admin) ? $this->admin : FALSE;
}
public function getSwitchedAttribute()
{
return Session::get('orig_user');
}
public function isAdmin($id)
{
return isset($this->admin) ? $this->admin : FALSE;
}
}