selected view only agents injected in the drop down

This commit is contained in:
Atef Bellaaj 2025-06-23 11:31:18 +02:00 committed by Danny Avila
parent 6a28d01b20
commit 94c1f5f518
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
2 changed files with 13 additions and 12 deletions

View file

@ -433,7 +433,7 @@ const getListAgentsHandler = async (req, res) => {
});
const publiclyAccessibleIds = await findPubliclyAccessibleResources({
resourceType: 'agent',
requiredPermissions: requiredPermission,
requiredPermissions: PermissionBits.VIEW,
});
// Use the new ACL-aware function
const data = await getListAgentsByAccess({