activity: render all activities correctly

the activity type, usernames, time, referrer, and invite code are
displayed correctly for all types of activity.
This commit is contained in:
Harvey Tindall
2023-10-21 13:00:06 +01:00
parent 1032e4e747
commit 44172074b9
6 changed files with 55 additions and 12 deletions
+1
View File
@@ -107,6 +107,7 @@ func (app *appContext) checkUsers() {
if mode == "delete" {
status, err = app.jf.DeleteUser(id)
activity.Type = ActivityDeletion
activity.Value = user.Name
} else if mode == "disable" {
user.Policy.IsDisabled = true
// Admins can't be disabled