Only allow admins to access audit logs
This commit is contained in:
parent
e629e9ab22
commit
a192ea0caa
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue