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
1 changed files with 5 additions and 3 deletions

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",