Skip to content

Commit

Permalink
Fix failing test for finalising applications (#270)
Browse files Browse the repository at this point in the history
* cache clear

* add doc comment
  • Loading branch information
kdmnk committed May 26, 2023
1 parent 28c1e67 commit 429f112
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Http/Controllers/Auth/ApplicationController.php
Expand Up @@ -214,7 +214,7 @@ public function finalizeApplicationProcess()
RoleUser::where('role_id', Role::get(Role::AGGREGATED_APPLICATION_COMMITTEE_MEMBER)->id)->delete();
});

Cache::forget('collegists');
Cache::clear();
return back()->with('message', 'Sikeresen jóváhagyta az elfogadott jelentkezőket');
}

Expand Down Expand Up @@ -336,6 +336,9 @@ public function submitApplication(User $user)
}
}

/**
* Export all applications to excel
*/
public function exportApplications()
{
$this->authorize('viewAllApplications', User::class);
Expand Down

0 comments on commit 429f112

Please sign in to comment.