1
0
Fork 0
mirror of synced 2024-09-11 23:16:00 +12:00

Only allow admins to access audit logs

This commit is contained in:
Peter Clement 2023-03-01 14:48:10 +00:00
parent e629e9ab22
commit a192ea0caa

View file

@ -75,11 +75,15 @@ export const menu = derived([admin, auth], ([$admin, $auth]) => {
title: "Usage", title: "Usage",
href: "/builder/portal/account/usage", href: "/builder/portal/account/usage",
}, },
{
title: "Audit Logs",
href: "/builder/portal/account/auditLogs",
},
] ]
if ($auth.isAdmin) {
accountSubPages.push(
{
title: "Audit Logs",
href: "/builder/portal/account/auditLogs",
})
}
if ($admin.cloud && $auth?.user?.accountPortalAccess) { if ($admin.cloud && $auth?.user?.accountPortalAccess) {
accountSubPages.push({ accountSubPages.push({
title: "Upgrade", title: "Upgrade",