allowed login models and update of login controller

This commit is contained in:
2019-01-09 01:47:49 -06:00
parent 8187cb0388
commit b0a9e25c34
+1 -1
View File
@@ -58,7 +58,7 @@ class RequirePermission
//Using eloquent let's get the roles for the character
$checks = UserPermission::where('character_id', auth()->user()->character_id)->get(['permission']);
foreach($check as $check) {
foreach($checks as $check) {
if(!isset($check->permission)) {
abort(403, "You don't have the correct role to view this area.");
}