mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-15 12:50:15 +00:00
[Web] Archive settings, domain and mailbox switches, archive log and API
This commit is contained in:
25 files changed
+834
-12
No files matched your search
@@ -72,13 +72,14 @@ class StatusService
|
||||
}
|
||||
|
||||
/**
|
||||
* GET archive/log: deliveries, expired copies and mails not archived, newest first (admins, read-only keys included).
|
||||
* GET logs/archive: deliveries, expired copies and mails not archived, newest first (admins, read-only keys included);
|
||||
* $count limits the entries, 0 keeps the default.
|
||||
*
|
||||
* @throws AccessDenied
|
||||
*/
|
||||
public function log(): array
|
||||
public function log(int $count = 0): array
|
||||
{
|
||||
$this->context->requireAdmin(false);
|
||||
return $this->state->events();
|
||||
return ($count > 0) ? $this->state->events($count) : $this->state->events();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user