Skip to content

Commit 83aae68

Browse files
committed
4856: Fixed role limitations in layout mount
1 parent 7824cde commit 83aae68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/(app)/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
await goto('/auth');
148148
return;
149149
}
150-
if (!['user', 'admin'].includes($user?.role)) {
150+
if (['pending'].includes($user?.role)) {
151151
return;
152152
}
153153

0 commit comments

Comments
 (0)