Only allow admins to access audit logs
This commit is contained in:
parent
e629e9ab22
commit
a192ea0caa
1 changed files with 8 additions and 4 deletions
|
@ -75,11 +75,15 @@ export const menu = derived([admin, auth], ([$admin, $auth]) => {
|
|||
title: "Usage",
|
||||
href: "/builder/portal/account/usage",
|
||||
},
|
||||
|
||||
]
|
||||
if ($auth.isAdmin) {
|
||||
accountSubPages.push(
|
||||
{
|
||||
title: "Audit Logs",
|
||||
href: "/builder/portal/account/auditLogs",
|
||||
},
|
||||
]
|
||||
})
|
||||
}
|
||||
if ($admin.cloud && $auth?.user?.accountPortalAccess) {
|
||||
accountSubPages.push({
|
||||
title: "Upgrade",
|
||||
|
|
Loading…
Reference in a new issue