Skip to content

Commit

Permalink
suppress console events (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Tsao <[email protected]>
  • Loading branch information
kim-tsao authored May 4, 2022
1 parent 21de537 commit cb52e6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index/server/pkg/util/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ func getRegion(c *gin.Context) string {
//IsWebClient determines if the event is coming from the registry viewer or DevConsole client.
func IsWebClient(c *gin.Context) bool {
client := GetClient(c)
if client == viewerId || client == consoleId {
userId := GetUser(c)
if client == viewerId || userId == consoleId {
return true
}

Expand Down

0 comments on commit cb52e6c

Please sign in to comment.