From 490e2159716d0c957140f7904e3a81d578182650 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 28 Oct 2019 16:01:57 -0500 Subject: [PATCH] modified purge users command --- app/Console/Commands/Users/PurgeUsers.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/Users/PurgeUsers.php b/app/Console/Commands/Users/PurgeUsers.php index fafe8341b..abf472ef4 100644 --- a/app/Console/Commands/Users/PurgeUsers.php +++ b/app/Console/Commands/Users/PurgeUsers.php @@ -97,13 +97,13 @@ class PurgeUsers extends Command $role = UserRole::where(['character_id' => $user->character_id])->first(); //We don't want to modify Admin and SuperUsers. Admins and SuperUsers are removed via a different process. - if($role != 'Admin' || $role != 'SuperUser') { + if($role->role != 'Admin' || $role->role != 'SuperUser') { //Check if the user is allowed to login if(isset($corp_info->alliance_id)) { //Warped Intentions is allowed to login if($corp_info->alliance_id == '99004116') { //If the role is not Warped Intentions, then modify the role - if($role != 'User') { + if($role->role != 'User') { //Upate the role of the user UserRole::where([ 'character_id' => $user->character_id, @@ -118,7 +118,7 @@ class PurgeUsers extends Command ]); } } else if(in_array($corp_info->alliance_id, $legacy)) { //Legacy Users - if($role != 'User') { + if($role->role != 'User') { //Update the role of the user UserRole::where([ 'character_id' => $user->character_id, @@ -133,7 +133,7 @@ class PurgeUsers extends Command ]); } } else if(in_array($corp_info->alliance_id, $renter)) { //Renter Users - if($role != 'Renter') { + if($role->role != 'Renter') { //Update the role of the user UserRole::where([ 'character_id' => $user->character_id,