user role for purge user

This commit is contained in:
2019-10-28 16:33:53 -05:00
parent 5566409ffa
commit 41228bc857

View File

@@ -96,7 +96,7 @@ class PurgeUsers extends Command
if($failed === false) { if($failed === false) {
//Get the user's role //Get the user's role
$role = UserRole::where(['character_id' => $user->character_id])->first(); $role = UserRole::where(['character_id' => $user->character_id])->first();
dd($role); dd($role->role);
//We don't want to modify Admin and SuperUsers. Admins and SuperUsers are removed via a different process. //We don't want to modify Admin and SuperUsers. Admins and SuperUsers are removed via a different process.
if($role->role != 'Admin' || $role->role != 'SuperUser') { if($role->role != 'Admin' || $role->role != 'SuperUser') {
//Check if the user is allowed to login //Check if the user is allowed to login