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

Add admin option to enable/disable compression when archiving tasks #1123 #1423

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

MontrealSergiy
Copy link
Contributor

@MontrealSergiy MontrealSergiy commented Aug 26, 2024

a no-compression checkbox is added to the Archive panel in the task list

see #1123 for details

@MontrealSergiy MontrealSergiy added the Admin Features or bugs related to administrative features label Aug 26, 2024
@MontrealSergiy MontrealSergiy self-assigned this Aug 26, 2024
@@ -707,12 +708,14 @@ def operation
archive_dp_id = params[:archive_dp_id].presence # for 'archive as file' operation
dup_bourreau_id = nil unless dup_bourreau_id && Bourreau.find_all_accessible_by_user(current_user).where(:id => dup_bourreau_id).exists?
archive_dp_id = nil unless archive_dp_id && DataProvider.find_all_accessible_by_user(current_user).where(:id => archive_dp_id).exists?
nozip = params[:nozip].presence && current_user.has_role?(:admin_user) # for archiving without compression, admin only
Copy link
Member

Choose a reason for hiding this comment

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

use .present? not .presence, they're not the same thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Features or bugs related to administrative features Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants