admincontroller
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user