Skip to content

Commit

Permalink
fix message for non-admins
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed May 16, 2024
1 parent 9a7fe24 commit bc4a8a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/client/ui/AdminPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ export class AdminPanel extends Disposable {
return dom.create(AdminSection, t('Administrator Panel Unavailable'), [
dom('p', t(`You do not have access to the administrator panel.
Please log in as an administrator.`)),
dom('p', t(`Or, as a fallback, you can set: {{bootKey}} in the environment and visit: {{url}}`), {bootKey: dom('pre', 'GRIST_BOOT_KEY=secret'), url: dom('pre', `/admin?key=secret`)}),
dom(
'p',
t(`Or, as a fallback, you can set: {{bootKey}} in the environment and visit: {{url}}`, {
bootKey: dom('pre', 'GRIST_BOOT_KEY=secret'),
url: dom('pre', `/admin?key=secret`)
}),
),
]);
}

Expand Down

0 comments on commit bc4a8a9

Please sign in to comment.