Skip to content

Commit

Permalink
project wip thanks volunteering
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 20, 2023
1 parent 319455a commit 7f04d80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/OrganizationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public function index(Request $request)

public function show(Organization $organization)
{
if (!$organization->isActive()) {
if (!auth()->check() ) {
if (! $organization->isActive()) {
if (! auth()->check()) {
abort(404);
}
if (!auth()->user()->belongsToOrganization($organization)) {
if (! auth()->user()->belongsToOrganization($organization)) {
abort(404);
}
}
Expand Down
3 changes: 2 additions & 1 deletion resources/js/Pages/Public/VolunteerThankYou.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<HowCanYouHelp
class="mb-20"
:pageRoute="route('project', data.slug)"
:pageRoute="route('project', 1)"
@donate="triggerDonate"
@volunteer="triggerVolunteer"
@copyCode="copyEmbed"
Expand All @@ -69,6 +69,7 @@
flash: Object,
});
/** Trigger volunteer modal from card. */
const triggerVolunteer = () => {
document.getElementById('volunteer-active-modal').click();
Expand Down

0 comments on commit 7f04d80

Please sign in to comment.