Skip to content
Snippets Groups Projects
Commit c0ad585e authored by Diego Sampaio's avatar Diego Sampaio
Browse files

Do not protect upload files on Sandstorm environment

parent 8f9eeb90
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ WebApp.connectHandlers.use('/file-upload/', function(req, res, next) {
file = RocketChat.models.Uploads.findOneById(match[1]);
if (file) {
if (protectedFiles) {
if (!Meteor.settings.public.sandstorm && protectedFiles) {
var cookie, rawCookies, ref, token, uid;
cookie = new Cookies();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment