Skip to content

Commit 299df11

Browse files
committed
Added warning message to unverified users
1 parent 73702f6 commit 299df11

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/routes/+layout.svelte

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@
124124
<div class="admin-border" />
125125
{/if}
126126
<div class="container p-4">
127+
{#if userLoggedIn && !$page.data.userInfo.is_verified}
128+
<div class="row">
129+
<div class="col">
130+
<div class="alert alert-warning">
131+
<i class="bi bi-exclamation-triangle" />
132+
<strong>Warning</strong>: as a non-verified user, you have limited access; please
133+
contact an admin.
134+
</div>
135+
</div>
136+
</div>
137+
{/if}
127138
<slot />
128139
</div>
129140
<div class="d-flex flex-column min-vh-100 min-vw-100 loading" class:show={$navigating || loading}>

0 commit comments

Comments
 (0)