add: audit log and reports table
TODO: audit log/reports UIs
This commit is contained in:
parent
9a9b72bdbb
commit
b2df2739a7
16 changed files with 387 additions and 6 deletions
|
@ -223,6 +223,12 @@ impl DataManager {
|
|||
if user.id != y.owner {
|
||||
if !user.permissions.check(FinePermission::MANAGE_COMMUNITIES) {
|
||||
return Err(Error::NotAllowed);
|
||||
} else {
|
||||
self.create_auditlog_entry(crate::model::moderation::AuditLogEntry::new(
|
||||
user.id,
|
||||
format!("invoked `delete_community` with x value `{id}`"),
|
||||
))
|
||||
.await?
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue