allowed login models and update of login controller

This commit is contained in:
2019-01-09 01:43:10 -06:00
parent a4846e328a
commit 8b1ed3e4d3
@@ -58,6 +58,7 @@ class RequirePermission
$checks = UserPermission::where('character_id', auth()->user()->character_id)->get(['permission']);
foreach($check as $check) {
dd($check->permission);
if(!isset($check->permission)) {
abort(403, "You don't have the correct role to view this area.");
}