Don't add id for actor

We are dropping all ids from audit log.
This commit is contained in:
Abin Simon
2022-04-21 20:09:07 +05:30
parent 9009351c53
commit 5c2d211100

View File

@@ -39,7 +39,6 @@ const (
// EventActorAccount Event's initiator account
type EventActorAccount struct {
ID string `json:"id"`
Username string `json:"username"`
}
@@ -249,7 +248,6 @@ func getEventClientFromContext(ctx context.Context) *EventClient {
func getActor(cOpts createEventOptions) *EventActor {
account := EventActorAccount{
ID: cOpts.accountID,
Username: cOpts.username,
}
return &EventActor{
@@ -260,10 +258,8 @@ func getActor(cOpts createEventOptions) *EventActor {
}
func GetActorFromSessionData(sd *commonv3.SessionData) *EventActor {
accountID := sd.GetAccount()
username := sd.GetUsername()
account := EventActorAccount{
ID: accountID,
Username: username,
}
groups := sd.Groups // TODO: get groups (in interceptor?)