-
Notifications
You must be signed in to change notification settings - Fork 587
fix(2.2.x backport): respect upload and directory listing permissions #1527
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
base: release/2.2.x
Are you sure you want to change the base?
Conversation
* fix: respect `can_use_directory_listing`, `change_folder`, `add_folder`, `add_file` permissions * Update tests * fix flake8 error * Close files in tests * Add test for has_... permissions of File and Folder class * Remove unused variables from tests * Remove unnecessary noqa
Reviewer's GuideBackports patch #1352 to release/2.2.x by enforcing Django object permissions on file uploads and directory listing, updating model permission checks to require relevant add/change permissions, localizing admin error messages, and adjusting tests to use context managers and cover new permission scenarios. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
@fdintino Thank you very much for the PR! Can you update the |
Backport the patch from #1352 to the release/2.2.x branch. It looks like it was accidentally only cherry-picked onto the release/2.x branch, which wasn't used to make subsequent releases.
would fix #1526 after it is merged and a 2.2.8 release is made.
Summary by Sourcery
Backport enforcement of upload and directory listing permissions to the 2.2.x branch by adding permission checks in admin views and model methods, localizing error messages, and expanding tests to cover these behaviors.
Enhancements:
Tests:
Chores: