Skip to content
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

Fix: Upload access control too distributed #9215

Merged
merged 1 commit into from
Dec 22, 2017
Merged

Conversation

rodrigok
Copy link
Member

@RocketChat/core

@rodrigok rodrigok added this to the 0.60.0 milestone Dec 21, 2017
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-9215 December 21, 2017 18:34 Inactive
onValidate: FileUpload.uploadsOnValidate
onValidate: FileUpload.uploadsOnValidate,
onRead(fileId, file, req, res) {
if (FileUpload.requestCanAccessFiles(req)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you could have this if testing the negative condition instead the positive one (like it is done here) I think it would be better =)

@rodrigok rodrigok merged commit 275b906 into develop Dec 22, 2017
@rodrigok rodrigok deleted the hotfix/upload-access branch December 22, 2017 11:55
rodrigok added a commit that referenced this pull request Dec 26, 2017
Fix: Upload access control too distributed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants