Layout updates, switch user updates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user