admincontroller
This commit is contained in:
@@ -48,8 +48,7 @@ class AdminController extends Controller
|
|||||||
$permission = $request->permission;
|
$permission = $request->permission;
|
||||||
|
|
||||||
//Get the character id from the username using the user table
|
//Get the character id from the username using the user table
|
||||||
$character = DB::table('users')->where(['name' => $user])->get();
|
$character = User::where(['name' => $user])->get();
|
||||||
dd($character);
|
|
||||||
//Check to see if the character already has the permission
|
//Check to see if the character already has the permission
|
||||||
if(!UserPermission::where(['character_id' => $character->character_id, 'permission' => $permission])->exists()) {
|
if(!UserPermission::where(['character_id' => $character->character_id, 'permission' => $permission])->exists()) {
|
||||||
$perm = new UserPermission;
|
$perm = new UserPermission;
|
||||||
|
|||||||
Reference in New Issue
Block a user