Audit module: audit log and address bans
This commit is contained in:
1 parent
b75403e5ea
commit
d2ea1bacac
41 files changed
+2137
-5
No files matched your search
@@ -42,6 +42,20 @@ class MediaModule extends BaseModule
|
||||
];
|
||||
}
|
||||
|
||||
public function actions(): array
|
||||
{
|
||||
return [
|
||||
'media.store' => ['Uploaded a file'],
|
||||
'media.update' => ['Changed a file'],
|
||||
'media.destroy' => ['Deleted a file'],
|
||||
];
|
||||
}
|
||||
|
||||
public function views(): array
|
||||
{
|
||||
return ['media.index' => 'Opened the media library', 'media.items' => ''];
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
RateLimiter::for('media-files', fn (Request $request) => Limit::perMinute(max(1, (int) config('manager.media.per_minute', 600)))->by((string) $request->ip()));
|
||||
|
||||
Reference in new issue
Block a user