Do not disable Agentic Chat if default namespace is not selected
As the outcome of Check if user is allowed to use Agentic Chat in... (!217227 - merged) Agentic Chat is unavailable when user doesn't have default namespace selected.
The correct behaviour is not to hide Agentic Chat in UI, but show a banner that user should select the default namespace.
The changes in !217227 (merged) to ee/app/policies/ee/group_policy.rb and ee/app/policies/ee/project_policy.rb make it so Agentic Chat is not available, so no Agentic Chat UI component is rendered, including the "no default namespace" banner. This should be fixed.
Screenshot
You can see that Agentic Chat isn't available. Only Classic Chat.
How to Reproduce
- Choose an user belonging to 2 namespaces, one with Duo Pro seats, one with Duo Core.
- Remove the user's default namespace:
user.user_preference.update(duo_default_namespace_id: nil) - Visit the Duo Core namespace and open chat
Edited by Mark Chao
