More improvements to User Switch

This commit is contained in:
Deon George
2018-07-17 13:27:25 +10:00
parent ac867a2526
commit 55cbe4087c
3 changed files with 10 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ class AdminController extends Controller
public function switch_authorised()
{
return TRUE;
return Auth::user()->isAdmin ? TRUE : FALSE;
}
public function switch_session()