mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
refactor(core, editor): Remove legacy nodesAccess (no-changelog) (#9016)
This commit is contained in:
@@ -25,7 +25,6 @@ import { SourceControlPreferencesService } from './sourceControlPreferences.serv
|
||||
import { writeFileSync } from 'fs';
|
||||
import { SourceControlImportService } from './sourceControlImport.service.ee';
|
||||
import type { User } from '@db/entities/User';
|
||||
import isEqual from 'lodash/isEqual';
|
||||
import type { SourceControlGetStatus } from './types/sourceControlGetStatus';
|
||||
import type { TagEntity } from '@db/entities/TagEntity';
|
||||
import type { Variables } from '@db/entities/Variables';
|
||||
@@ -384,7 +383,7 @@ export class SourceControlService {
|
||||
* Does a comparison between the local and remote workfolder based on NOT the git status,
|
||||
* but certain parameters within the items being synced.
|
||||
* For workflows, it compares the versionIds
|
||||
* For credentials, it compares the name, type and nodeAccess
|
||||
* For credentials, it compares the name and type
|
||||
* For variables, it compares the name
|
||||
* For tags, it compares the name and mapping
|
||||
* @returns either SourceControlledFile[] if verbose is false,
|
||||
@@ -565,12 +564,7 @@ export class SourceControlService {
|
||||
> = [];
|
||||
credLocalIds.forEach((local) => {
|
||||
const mismatchingCreds = credRemoteIds.find((remote) => {
|
||||
return (
|
||||
remote.id === local.id &&
|
||||
(remote.name !== local.name ||
|
||||
remote.type !== local.type ||
|
||||
!isEqual(remote.nodesAccess, local.nodesAccess))
|
||||
);
|
||||
return remote.id === local.id && (remote.name !== local.name || remote.type !== local.type);
|
||||
});
|
||||
if (mismatchingCreds) {
|
||||
credModifiedInEither.push({
|
||||
|
||||
Reference in New Issue
Block a user