diff options
author | =Corey Hulen <corey@hulen.com> | 2015-11-18 08:53:17 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-11-18 08:53:17 -0800 |
commit | c115191d6b5abdefda856c063e3f9048dc82f830 (patch) | |
tree | cc08315422b41c0dafb41a00e5e7e93913b9dd62 /api/team.go | |
parent | 59722a13eef85cbe4a3cf710683c0ea0cb99348f (diff) | |
download | chat-c115191d6b5abdefda856c063e3f9048dc82f830.tar.gz chat-c115191d6b5abdefda856c063e3f9048dc82f830.tar.bz2 chat-c115191d6b5abdefda856c063e3f9048dc82f830.zip |
fixing based on feedback
Diffstat (limited to 'api/team.go')
-rw-r--r-- | api/team.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/team.go b/api/team.go index 35c770c20..2cc7106dc 100644 --- a/api/team.go +++ b/api/team.go @@ -584,6 +584,8 @@ func updateTeam(c *Context, w http.ResponseWriter, r *http.Request) { func PermanentDeleteTeam(c *Context, team *model.Team) *model.AppError { l4g.Warn("Attempting to permanently delete team %v id=%v", team.Name, team.Id) + c.Path = "/teams/permanent_delete" + c.LogAuditWithUserId("", fmt.Sprintf("attempt teamId=%v", team.Id)) team.DeleteAt = model.GetMillis() if result := <-Srv.Store.Team().Update(team); result.Err != nil { @@ -608,6 +610,7 @@ func PermanentDeleteTeam(c *Context, team *model.Team) *model.AppError { } l4g.Warn("Permanently deleted team %v id=%v", team.Name, team.Id) + c.LogAuditWithUserId("", fmt.Sprintf("success teamId=%v", team.Id)) return nil } |