Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 2958417

Browse files
Update app/controllers/discourse_ai/ai_bot/bot_controller.rb
Co-authored-by: Keegan George <[email protected]>
1 parent 849acd0 commit 2958417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/discourse_ai/ai_bot/bot_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def discover
4949
ai_persona =
5050
AiPersona
5151
.all_personas(enabled_only: false)
52-
.find { |p| p.id == SiteSetting.ai_bot_discover_persona.to_i }
52+
.find { |persona| persona.id == SiteSetting.ai_bot_discover_persona.to_i }
5353

5454
if ai_persona.nil? || !current_user.in_any_groups?(ai_persona.allowed_group_ids.to_a)
5555
raise Discourse::InvalidAccess.new

0 commit comments

Comments
 (0)