mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-16 16:34:45 +00:00
FIX: ai-image-caption should not crash on checking currentUser can_use_assistant (#523)
This commit is contained in:
parent
a03bc6ddec
commit
d57212475c
@ -14,7 +14,7 @@ export default apiInitializer("1.25.0", (api) => {
|
||||
|
||||
if (
|
||||
!settings.ai_helper_enabled_features.includes("image_caption") ||
|
||||
!currentUser.can_use_assistant
|
||||
!currentUser?.can_use_assistant
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user