admincontroller

This commit is contained in:
2018-12-30 02:27:56 -06:00
parent 7c40990ef9
commit 3f54d2cf36

View File

@@ -49,6 +49,7 @@ class AdminController extends Controller
//Get the character id from the username using the user table
$character = User::where(['name' => $user])->get(['character_id']);
var_dump($character);
//Check to see if the character already has the permission
$check = UserPermission::where(['character_id' => $character, 'permission' => $permission])->get();
if(!isset($check)) {