diff --git a/SharpbinV3.Client/src/lib/components/PasteCommentItem.svelte b/SharpbinV3.Client/src/lib/components/PasteCommentItem.svelte index 3dd7ac3..c81f0b1 100644 --- a/SharpbinV3.Client/src/lib/components/PasteCommentItem.svelte +++ b/SharpbinV3.Client/src/lib/components/PasteCommentItem.svelte @@ -8,7 +8,7 @@ import { ThumbsUp, ThumbsDown, Trash2, Shredder } from '@lucide/svelte'; import { resolve } from '$app/paths'; import RichTextEditor from './RichTextEditor.svelte'; - import { hasRole } from '$lib/utils/auth'; + import { hasRole, roles } from '$lib/utils/auth'; interface Props { node: CommentTreeNode; @@ -221,7 +221,7 @@ > - {#if hasRole($user.roles, 4) || hasRole($user.roles, 2)} + {#if hasRole($user.roles, roles.Moderator) || hasRole($user.roles, roles.Admin)}