1
0
Fork 0
mirror of synced 2024-08-16 02:22:08 +12:00

Merge pull request #9843 from Budibase/fix/audit-log-permissions

Only allow admins to access audit logs screen
This commit is contained in:
Peter Clement 2023-03-01 15:05:45 +00:00 committed by GitHub
commit 6478f0b53a

View file

@ -75,11 +75,13 @@ 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",