fix(api): 删除未接通的 Access JWT 委托,外部面只认会话 cookie,admin 主机的 IP 判定只认安装指定的地址,文档与 OpenAPI 同步
This commit is contained in:
15 files changed
+274
-382
No files matched your search
@@ -782,8 +782,8 @@ func (p *PGRepo) Audit(ctx context.Context, e AuditEntry) error {
|
||||
if len(e.Payload) > 0 {
|
||||
payload = string(e.Payload)
|
||||
}
|
||||
// actor_user_id goes through a lookup so an id with no users row (an
|
||||
// Access-JWT subject, a purged account) lands as NULL instead of failing
|
||||
// actor_user_id goes through a lookup so an id with no users row (a purged
|
||||
// account) lands as NULL instead of failing
|
||||
// the foreign key and losing the row.
|
||||
_, err := p.db.ExecContext(ctx,
|
||||
`INSERT INTO audit_logs (actor, source, action, server_name, request_id, payload,
|
||||
|
||||
Reference in new issue
Block a user