mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(editor): Move frontend permissions code to @n8n/permissions (no-changelog) (#16656)
This commit is contained in:
@@ -9,7 +9,7 @@ import { type ProjectIcon as ProjectIconType, ProjectTypes } from '@/types/proje
|
||||
import { useProjectsStore } from '@/stores/projects.store';
|
||||
import ProjectTabs from '@/components/Projects/ProjectTabs.vue';
|
||||
import ProjectIcon from '@/components/Projects/ProjectIcon.vue';
|
||||
import { getResourcePermissions } from '@/permissions';
|
||||
import { getResourcePermissions } from '@n8n/permissions';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { useSourceControlStore } from '@/stores/sourceControl.store';
|
||||
import ProjectCreateResource from '@/components/Projects/ProjectCreateResource.vue';
|
||||
|
||||
@@ -6,7 +6,7 @@ import { useTelemetry } from '@/composables/useTelemetry';
|
||||
import { useToast } from '@/composables/useToast';
|
||||
import { VIEWS } from '@/constants';
|
||||
import type { ICredentialsResponse, IUsedCredential, IWorkflowDb } from '@/Interface';
|
||||
import { getResourcePermissions } from '@/permissions';
|
||||
import { getResourcePermissions } from '@n8n/permissions';
|
||||
import { useCredentialsStore } from '@/stores/credentials.store';
|
||||
import { useProjectsStore } from '@/stores/projects.store';
|
||||
import { useUIStore } from '@/stores/ui.store';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { RouteLocationNamedRaw } from 'vue-router';
|
||||
import type { ICredentialsResponse, IUsedCredential } from '@/Interface';
|
||||
import { getResourcePermissions } from '@/permissions';
|
||||
import { getResourcePermissions } from '@n8n/permissions';
|
||||
import { VIEWS } from '@/constants';
|
||||
|
||||
const props = withDefaults(
|
||||
|
||||
Reference in New Issue
Block a user