mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 20:29:08 +00:00
fix(core): Do not serialize CredentialsEntity.shared anymore (no-changelog) (#10753)
This commit is contained in:
committed by
GitHub
parent
d9473a5f9d
commit
8450ec5a5c
@@ -113,13 +113,6 @@ export class CredentialsService {
|
||||
);
|
||||
}
|
||||
|
||||
credentials.forEach((c) => {
|
||||
// @ts-expect-error: This is to emulate the old behaviour of removing the shared
|
||||
// field as part of `addOwnedByAndSharedWith`. We need this field in `addScopes`
|
||||
// though. So to avoid leaking the information we just delete it.
|
||||
delete c.shared;
|
||||
});
|
||||
|
||||
return credentials;
|
||||
}
|
||||
|
||||
@@ -165,13 +158,6 @@ export class CredentialsService {
|
||||
credentials = credentials.map((c) => this.roleService.addScopes(c, user, projectRelations!));
|
||||
}
|
||||
|
||||
credentials.forEach((c) => {
|
||||
// @ts-expect-error: This is to emulate the old behaviour of removing the shared
|
||||
// field as part of `addOwnedByAndSharedWith`. We need this field in `addScopes`
|
||||
// though. So to avoid leaking the information we just delete it.
|
||||
delete c.shared;
|
||||
});
|
||||
|
||||
return credentials;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user