Restore 'skip download counts' permission functionality

Created on 8 January 2024, 12 months ago
Updated 12 July 2024, 5 months ago

Problem/Motivation

The 'skip download counts' permission currently has no effect. The relevant code near the top of download_count_file_access() was commented out when the module was migrated from 7.x to 8.x

Steps to reproduce

1. Assign the 'skip download counts' permission to a role.
2. Log in as a user with that role.
3. Download a file that is tracked by Download count.
4. Visit /admin/reports/download-count?sort=desc&order=Last Downloaded and note that the file download has been logged.

Proposed resolution

Uncomment the 'skip download counts' functionality within download_count_file_access().

Remaining tasks

Needs review.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand amanp Poneke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024