Skip to content

Commit

Permalink
Fixes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Aug 15, 2024
1 parent f0d0516 commit f280d59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/(admin)/account/+layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ export const load = async ({ fetch, data, depends, url }) => {
data.profile

const createProfilePath = "/account/create_profile"
const signOutPath = "/account/sign_out"
if (
profile &&
!_hasFullProfile(profile) &&
url.pathname !== createProfilePath
url.pathname !== createProfilePath &&
url.pathname !== signOutPath
) {
redirect(303, createProfilePath)
}
Expand Down

0 comments on commit f280d59

Please sign in to comment.