fix: sentry logging without user authentication [ci-skip]

This commit is contained in:
Ferdinand Mütsch 2023-01-08 15:52:21 +01:00
parent 0c51d8682b
commit 41311a8b06
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ func (c *PrincipalContainer) GetPrincipal() *models.User {
}
func (c *PrincipalContainer) GetPrincipalIdentity() string {
if c.principal == nil {
return ""
}
return c.principal.Identity()
}