mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Improve record's User field.
This commit is contained in:
@ -62,7 +62,7 @@ func RecordMessage(ctx *context.Context) {
|
||||
|
||||
userId := getUser(ctx)
|
||||
if userId != "" {
|
||||
record.Organization, record.Username = util.GetOwnerAndNameFromId(userId)
|
||||
record.Organization, record.User = util.GetOwnerAndNameFromId(userId)
|
||||
}
|
||||
|
||||
object.AddRecord(record)
|
||||
|
Reference in New Issue
Block a user