diff --git a/SharpbinV3.Client/src/routes/user/[username]/+page.svelte b/SharpbinV3.Client/src/routes/user/[username]/+page.svelte index 32a5cd7..591454b 100644 --- a/SharpbinV3.Client/src/routes/user/[username]/+page.svelte +++ b/SharpbinV3.Client/src/routes/user/[username]/+page.svelte @@ -657,7 +657,7 @@ {/if} - {#if !isOwner && !$user?.isBanned && $user} + {#if !isOwner && !$user?.isBanned && $user && (!hasRole(data.user.roles, roles.Admin) || !hasRole(data.user.roles, roles.Moderator))}
(request.ReportType, true, out var reportType); if (!Enum.IsDefined(reportType)) return BadRequest(new { success = false, message = "Invalid report type." });