Skip to content

Commit 3724bbe

Browse files
committed
TT-4816 Only one user when completely offline
1 parent 422e6a4 commit 3724bbe

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/routes/Access.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -523,11 +523,13 @@ export function Access(
523523
title={t.offlineUsers}
524524
/>
525525
)}
526-
<ActionBox>
527-
<AltButton id="accessCreateUser" onClick={handleCreateUser}>
528-
{t.createUser}
529-
</AltButton>
530-
</ActionBox>
526+
{localStorage.getItem('offlineAdmin') !== 'true' && (
527+
<ActionBox>
528+
<AltButton id="accessCreateUser" onClick={handleCreateUser}>
529+
{t.createUser}
530+
</AltButton>
531+
</ActionBox>
532+
)}
531533
<ActionBox>
532534
<AltButton id="accessImport" onClick={handleImport}>
533535
{t.importSnapshot}

0 commit comments

Comments
 (0)