mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* Added 2 checks for app/file.go - Check if channel id exist - Check if user has permission to the upload file to the channel Also added translations for 2 errors defined in app/file.go * fixed 1 failing test that was linked with UploadFile * Fixed small issue, according to the review. * missed 1 review item. Just updated the code for it. * fix 1 failing test, assuming that the file upload is required. ignoring nouser idea. Added the translation for english for 2 newly defined errors. * removed new line * trying to fix the translation issue. Added the missing translations from master. * as per discussion, we need to revert the check for user channel permission. So reverted it. * Update app/file_test.go Co-Authored-By: Alejandro García Montoro <alejandro.garciamontoro@gmail.com> * Update i18n/en.json Co-Authored-By: Alejandro García Montoro <alejandro.garciamontoro@gmail.com> * Update file.go Move the check to the top of the method. * go fmt Co-authored-by: mattermod <mattermod@users.noreply.github.com> Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com> Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>