1
0
Fork 0
mirror of synced 2024-08-17 02:51:55 +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",
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) {
accountSubPages.push({
title: "Upgrade",