diff --git a/src/components/doormile/AgentOperationsBanner.jsx b/src/components/doormile/AgentOperationsBanner.jsx index e30c2c1..84d3da8 100644 --- a/src/components/doormile/AgentOperationsBanner.jsx +++ b/src/components/doormile/AgentOperationsBanner.jsx @@ -10,6 +10,8 @@ import { SkillRegistry } from '@/lib/assistant/skills/SkillRegistry'; import { wallClockNow } from '@/lib/assistant/agent/signals'; import { executeProposal, canExecuteProposal } from '@/lib/assistant/agent/actions'; import { Button } from '@/components/ui/button'; +import { useAuth } from '@/lib/AuthContext'; +import { canOnboardClients } from '@/lib/clientOnboarding'; /** * AgentOperationsBanner @@ -40,6 +42,10 @@ export default function AgentOperationsBanner({ className = '' }) { const navigate = useNavigate(); + // The Skills & Tools tab is the owner login's only; nobody else gets a + // button into it. + const { user, isClient } = useAuth(); + const canConfigure = canOnboardClients(user, isClient); // Which settings the rules are running on — the registry's, or the code // defaults while it is unreachable. Said on screen, so a tuned threshold is // never assumed when it is not in force. @@ -141,7 +147,7 @@ export default function AgentOperationsBanner({
- + }