feat: add response to Records page (#2830)

* feat: add response to Records page

* feat: improve AddRecord

* feat: remove log and return err

* feat: improve record in signup and record deny

* fix: filter will generate 403 record correctly
This commit is contained in:
DacongDA
2024-03-22 14:53:38 +08:00
committed by GitHub
parent 97cc1f9e2b
commit 23dbb0b926
30 changed files with 117 additions and 59 deletions

View File

@ -271,10 +271,7 @@ func (c *ApiController) Signup() {
return
}
record := object.NewRecord(c.Ctx)
record.Organization = application.Organization
record.User = user.Name
util.SafeGoroutine(func() { object.AddRecord(record) })
c.Ctx.Input.SetParam("recordUserId", fmt.Sprintf("%s/%s", application.Organization, user.Name))
userId := user.GetId()
util.LogInfo(c.Ctx, "API: [%s] is signed up as new user", userId)