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
@@ -43,6 +43,30 @@ class PostsModule extends BaseModule
|
||||
];
|
||||
}
|
||||
|
||||
public function actions(): array
|
||||
{
|
||||
return [
|
||||
'posts.store' => ['Created a post'],
|
||||
'posts.update' => ['Changed a post'],
|
||||
'posts.online' => ['Put a post on the site, or took it off', ['online']],
|
||||
'posts.destroy' => ['Deleted a post'],
|
||||
'labels.store' => ['Made a category or tag', ['type', 'name']],
|
||||
'labels.update' => ['Renamed a category or tag', ['type', 'name', 'new_name']],
|
||||
'labels.destroy' => ['Removed a category or tag', ['type', 'name']],
|
||||
];
|
||||
}
|
||||
|
||||
public function views(): array
|
||||
{
|
||||
return [
|
||||
'posts.index' => 'Opened the posts',
|
||||
'posts.create' => 'Opened the form for a new post',
|
||||
'posts.edit' => 'Opened a post',
|
||||
'posts.preview' => 'Opened the preview of a post',
|
||||
'labels.index' => 'Opened the categories and tags',
|
||||
];
|
||||
}
|
||||
|
||||
/** Where the media library looks for the use of a file: the texts of the posts. */
|
||||
public function boot(): void
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user