Skip to content

Commit

Permalink
Add user authentication check for editable state in GroupCardItem com…
Browse files Browse the repository at this point in the history
…ponent
  • Loading branch information
armantorkzaban committed Dec 30, 2024
1 parent e6c5092 commit 16d0e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/components/GroupCardItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import ArrowUpRight from "lucide-svelte/icons/arrow-up-right";
import Loading from "@/components/ui/loading/Loading.svelte";
import { goto } from "$app/navigation";
import { authStore } from "$lib/stores/authStore";
const dispatch = createEventDispatcher();
export let id = "";
Expand Down Expand Up @@ -181,7 +182,7 @@
</Card.Content>
<Card.Footer>
<div class="content-container links-container">
{#if editable}
{#if editable && $authStore.user}
<Button
variant="outline"
class="text-blue-700"
Expand Down

0 comments on commit 16d0e98

Please sign in to comment.