-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
What would you like to see?
Currently, file attachment functionality is only available for admin users. I would like to suggest enabling this feature for all users (both admin and normal users).
I found the restriction in:
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AttachItem/index.jsx
Current code has this check:
if (!!user && user.role === "default") return null;
I tried to modify it similar to this PR:
I removed the role check to allow all users to use the attachment feature, but it still doesn't work. Normal users still can't see the attachment button.
Expected behavior:
All users should be able to see the attachment button
All users should be able to attach files to their chats
The attachment functionality should work the same way it does for admin users
Is there any additional configuration or permission setting that needs to be changed besides modifying the index.jsx file? Looking forward to your guidance on the correct way to implement this feature.