Merge pull request #9843 from Budibase/fix/audit-log-permissions
Only allow admins to access audit logs screen
This commit is contained in:
commit
5c5adab92f
|
@ -75,11 +75,13 @@ export const menu = derived([admin, auth], ([$admin, $auth]) => {
|
||||||
title: "Usage",
|
title: "Usage",
|
||||||
href: "/builder/portal/account/usage",
|
href: "/builder/portal/account/usage",
|
||||||
},
|
},
|
||||||
{
|
]
|
||||||
|
if ($auth.isAdmin) {
|
||||||
|
accountSubPages.push({
|
||||||
title: "Audit Logs",
|
title: "Audit Logs",
|
||||||
href: "/builder/portal/account/auditLogs",
|
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