mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat: Audit Logs - add new page to frontend [WIP] (no-changelog) (#6418)
* feat: Audit Logs (WIP) * feat: Audit Logs license depending contents * fix(editor): simplify import * fix(editor): add audit logs to server
This commit is contained in:
@@ -42,6 +42,7 @@ import SettingsSso from './views/SettingsSso.vue';
|
||||
import SignoutView from '@/views/SignoutView.vue';
|
||||
import SamlOnboarding from '@/views/SamlOnboarding.vue';
|
||||
import SettingsVersionControl from './views/SettingsVersionControl.vue';
|
||||
import SettingsAuditLogs from './views/SettingsAuditLogs.vue';
|
||||
import { usePostHog } from './stores/posthog.store';
|
||||
|
||||
Vue.use(Router);
|
||||
@@ -714,6 +715,31 @@ export const routes = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'audit-logs',
|
||||
name: VIEWS.AUDIT_LOGS,
|
||||
components: {
|
||||
settingsView: SettingsAuditLogs,
|
||||
},
|
||||
meta: {
|
||||
telemetry: {
|
||||
pageCategory: 'settings',
|
||||
getProperties(route: Route) {
|
||||
return {
|
||||
feature: 'audit-logs',
|
||||
};
|
||||
},
|
||||
},
|
||||
permissions: {
|
||||
allow: {
|
||||
role: [ROLE.Owner],
|
||||
},
|
||||
deny: {
|
||||
shouldDeny: () => !window.localStorage.getItem('audit-logs'),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user