mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-10 02:27:10 +00:00
[Web][Restic][Dovecot] Backup: safer restic.sh restores, access check first, own aliases and sync sources kept, runner fixes
This commit is contained in:
12 files changed
+169
-24
No files matched your search
@@ -155,6 +155,8 @@ var mailcowBackup = (function($) {
|
||||
return job.state === 'queued' || job.state === 'running';
|
||||
}
|
||||
function isCancellable(job) {
|
||||
// domain admins cancel only restores domain admins requested (JobService::cancel)
|
||||
if (typeof role !== 'undefined' && role === 'domainadmin' && (job.params || {}).requested_role !== 'domainadmin') return false;
|
||||
return job.state === 'queued' || (job.state === 'running' && !(job.type === 'restore' && DOVECOT_STEPS.indexOf(job.step) !== -1));
|
||||
}
|
||||
function stepText(job) {
|
||||
|
||||
Reference in new issue
Block a user