mirror of
https://github.com/projectsend/projectsend.git
synced 2026-09-25 12:54:59 +00:00
Give quarantined files a screen, an owner, and somebody to tell
An infected file now goes somewhere rather than nowhere. Staff holding the new release_quarantined_files permission get a Quarantine screen listing what was refused, who uploaded it, and what the scanner called it. They can delete it as they always could, or release it — which needs a written reason, a password confirmation on top of the permission, and lands in the activity log under their name. Only the administrator role holds that permission by default. Deciding a threat report is wrong is a different judgement from deciding a file is no longer needed, which is why it is not delete_files. Two notifications, two audiences: staff who can act on it, and the person who uploaded it — for whom this is how they learn their own machine has something on it. The people the file was shared with are deliberately not told about a file they never received. `projectsend:scan-files` runs hourly: it re-queues files still waiting, and re-scans the ones that went out unscanned while the scanner was unreachable, since it may be back. With --existing it also works through a library uploaded before scanning was switched on, paced by a setting so it does not starve today's uploads. A file that was downloadable before it was caught says so on the screen, with its download count, because that is the case where somebody may already have a copy.
This commit is contained in:
@@ -56,6 +56,7 @@ class SchedulerMonitoringController extends Controller
|
||||
'projectsend:purge-zip-downloads' => (string) __('Purge zip downloads'),
|
||||
'projectsend:check-for-updates' => (string) __('Check for updates'),
|
||||
'projectsend:fetch-news' => (string) __('Fetch dashboard news'),
|
||||
'projectsend:scan-files' => (string) __('Scan files for viruses'),
|
||||
'projectsend:purge-expired-files' => (string) __('Purge expired files'),
|
||||
'projectsend:purge-orphan-files' => (string) __('Purge orphan files'),
|
||||
'projectsend:purge-api-request-logs' => (string) __('Purge API request logs'),
|
||||
|
||||
Reference in New Issue
Block a user