fix(security): enforce resource isolation across API and hubs
This commit is contained in:
1 parent
21f0530b6c
commit
1cd4e2b4b5
39 files changed
+1081
-497
No files matched your search
+1
-1
@@ -35,7 +35,7 @@ public class GetEffectiveAgentConfigQueryHandler
|
||||
config[s.Key] = s.Value;
|
||||
|
||||
var agentSettings = await _db.AgentSettings
|
||||
.Where(s => s.AgentId == request.AgentId)
|
||||
.Where(s => s.AgentId == request.AgentId && _db.AppSettings.Any(a => a.Key == s.Key && a.AgentScoped))
|
||||
.ToListAsync(ct);
|
||||
|
||||
foreach (var s in agentSettings)
|
||||
|
||||
Reference in new issue
Block a user