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 fileSecurity check #6102

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Fix fileSecurity check #6102

merged 1 commit into from
Sep 1, 2023

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Sep 1, 2023

What does this PR do?

Because of the getAttributes() call, $fileSecurity was always true which lead to invalid permission check. This resulted in files being deleted when a user had delete permissions on the file even though they didn't on the bucket.

Closes #6042

Test Plan

image

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

Because of the `getAttributes()` call, `$fileSecurity` was always true
which lead to invalid permission check. This resulted in files being
deleted when a user had delete permissions on the file even though
they didn't on the bucket.
@stnguyen90 stnguyen90 marked this pull request as ready for review September 1, 2023 03:36
@stnguyen90 stnguyen90 linked an issue Sep 1, 2023 that may be closed by this pull request
2 tasks
@abnegate abnegate merged commit 017cd75 into 1.4.x Sep 1, 2023
3 checks passed
@stnguyen90 stnguyen90 deleted the fix-file-security-check branch September 10, 2023 16:33
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.

🐛 Bug Report: Error deleting a file after adding delete permissions
2 participants