mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Handle localStorage being blocked/unavailable (#7348)
This commit is contained in:
committed by
GitHub
parent
739a4d4ecf
commit
c05bc6728d
@@ -1,3 +1,4 @@
|
||||
import { useStorage } from '@vueuse/core';
|
||||
import ChangePasswordView from './views/ChangePasswordView.vue';
|
||||
import ErrorView from './views/ErrorView.vue';
|
||||
import ForgotMyPasswordView from './views/ForgotMyPasswordView.vue';
|
||||
@@ -794,7 +795,7 @@ export const routes = [
|
||||
role: [ROLE.Owner],
|
||||
},
|
||||
deny: {
|
||||
shouldDeny: () => !window.localStorage.getItem('audit-logs'),
|
||||
shouldDeny: () => !useStorage('audit-logs', undefined).value,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user