mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix: Remove workflow execution credential error message when instance owner (#6116)
fix: remove execution credential error message when instance owner
This commit is contained in:
@@ -48,6 +48,7 @@ export const nodeHelpers = defineComponent({
|
|||||||
useNodeTypesStore,
|
useNodeTypesStore,
|
||||||
useSettingsStore,
|
useSettingsStore,
|
||||||
useWorkflowsStore,
|
useWorkflowsStore,
|
||||||
|
useUsersStore,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -355,9 +356,10 @@ export const nodeHelpers = defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (nameMatches.length === 0) {
|
if (nameMatches.length === 0) {
|
||||||
|
const isInstanceOwner = this.usersStore.isInstanceOwner;
|
||||||
const isCredentialUsedInWorkflow =
|
const isCredentialUsedInWorkflow =
|
||||||
this.workflowsStore.usedCredentials?.[selectedCredentials.id as string];
|
this.workflowsStore.usedCredentials?.[selectedCredentials.id as string];
|
||||||
if (!isCredentialUsedInWorkflow) {
|
if (!isCredentialUsedInWorkflow && !isInstanceOwner) {
|
||||||
foundIssues[credentialTypeDescription.name] = [
|
foundIssues[credentialTypeDescription.name] = [
|
||||||
this.$locale.baseText('nodeIssues.credentials.doNotExist', {
|
this.$locale.baseText('nodeIssues.credentials.doNotExist', {
|
||||||
interpolate: { name: selectedCredentials.name, type: credentialDisplayName },
|
interpolate: { name: selectedCredentials.name, type: credentialDisplayName },
|
||||||
|
|||||||
Reference in New Issue
Block a user