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 (
|
if (
|
||||||
!settings.ai_helper_enabled_features.includes("image_caption") ||
|
!settings.ai_helper_enabled_features.includes("image_caption") ||
|
||||||
!currentUser.can_use_assistant
|
!currentUser?.can_use_assistant
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue