admincontroller
This commit is contained in:
@@ -52,7 +52,7 @@ class AdminController extends Controller
|
|||||||
|
|
||||||
//Check to see if the character already has the permission
|
//Check to see if the character already has the permission
|
||||||
$check = UserPermission::where(['character_id' => $character[0]->character_id, 'permission' => $permission])->get();
|
$check = UserPermission::where(['character_id' => $character[0]->character_id, 'permission' => $permission])->get();
|
||||||
|
dd($check);
|
||||||
if(!isset($check)) {
|
if(!isset($check)) {
|
||||||
$perm = new UserPermission;
|
$perm = new UserPermission;
|
||||||
$perm->character_id = $character[0]->character_id;
|
$perm->character_id = $character[0]->character_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user