Merge pull request #9843 from Budibase/fix/audit-log-permissions
Only allow admins to access audit logs screen
This commit is contained in:
commit
6478f0b53a
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue