-
Notifications
You must be signed in to change notification settings - Fork 0
[$100] When an image is pasted in the editor window by a normal user, the error ribbon is shown in the editor #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Contest https://www.topcoder.com/challenges/30148426 has been created for this ticket. |
Contest https://www.topcoder.com/challenges/30148426 has been updated - it has been assigned to obog. |
@atelomycterus - I'm open to suggestions on this one. |
@jmgasper 'Allow File Uploads' Vanilla permission is used for any files (attachments/images). We've implemented Roles setup for attachments (#60):
So all files from an editor are uploaded via Vanilla REST API (/v2/media). If user is allowed to upload images then we need to fix \Vanilla\package\applications\dashboard\controllers\api\MediaApiController. At least check for image file types. So let me know if regular members (Vanilla member role) are allowed to upload images for any category or a specific category. |
@atelomycterus - Regular members will not be allowed to upload images at all, for any category (at least at this current time). @rootelement ☝️ Correct me if I'm wrong. |
Correct |
@atelomycterus - If you need anything else here, let me know, thanks! |
@jmgasper I wanted to reproduce this issue in DEV but I noticed that posting format is text. Rich Editor has a simple view in DEV. If post format is text then user can't upload images/attachments. Let me know if we are going to use Rich format. I'll update FormatInput in config.php. |
@atelomycterus - Not sure what happened there. I just turned the rich editor off and on again and it appears to be working now. |
@jmgasper We've already tweaked permissions for copliot and regular members. All works as expected.
Regular members can't upload any files including images. I've signed in as a regular member, The file/image buttons are not displayed because I don't have permissions to upload files. I've tested it for discussions and comments. File/image button is not displayed if User doesn't have upload permissions: Drag and drop a file without Upload permissions:
|
@atelomycterus - Yeah, I think if we can just say something like |
Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30148426 |
Verified. After clearing cache, the given message is shown when drag and drop files. Pasting is disabled. However it seems like the file is being attached first and then the error is displayed. |
Steps
Go to the forums as a normal user (ex user- TopConnCustomer link - https://vanilla.topcoder-dev.com/)
Click New Discussion
Paste an image in the editor
Actual result
The error ribbon is shown in the editor
Expected result
The error ribbon should not be shown in the editor
File attach error.zip
The text was updated successfully, but these errors were encountered: