mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor: Adjust credential endpoints permissions (#4656) (no-changelog)
* refactor: Adjust credential endpoints permissions
This commit is contained in:
@@ -36,7 +36,7 @@ credentialsController.use('/', EECredentialsController);
|
||||
credentialsController.get(
|
||||
'/',
|
||||
ResponseHelper.send(async (req: CredentialRequest.GetAll): Promise<ICredentialsResponse[]> => {
|
||||
const credentials = await CredentialsService.getAll(req.user);
|
||||
const credentials = await CredentialsService.getAll(req.user, { roles: ['owner'] });
|
||||
|
||||
return credentials.map((credential) => {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
|
||||
Reference in New Issue
Block a user