chat icon indicating copy to clipboard operation
chat copied to clipboard

ServerMsg.topic field sent to non-root user

Open Googlom opened this issue 5 years ago • 0 comments

According to .proto file: https://github.com/tinode/chat/blob/8c524edf2c77d7f07e9e5088ec92442092218d2d/pbx/model.proto#L434-L436

I'm using grpc and getting that on non-root user (authenticated with token):

info {
  topic: "usrpaFjzz4Kfmw"
  from_user_id: "usrpaFjzz4Kfmw"
  what: KP
}
topic: "p2ppaFjzz4Kfmx8ZUjE9x-ksA"
data {
  topic: "usrpaFjzz4Kfmw"
  from_user_id: "usrpaFjzz4Kfmw"
  seq_id: 5
  content: "\"qq\""
  timestamp: 1588686999632
}
topic: "p2ppaFjzz4Kfmx8ZUjE9x-ksA"

I've debugged my tokens authLevel and it's LevelAuth, not LevelRoot

Is this a bug report of a feature request?

  • [*] Bug report

Your environment

Server-side

  • [*] Your own setup:
    • platform Windows
    • version of tinode server, e.g. 0.16.5
    • database backend: mongo

Client-side

  • my custom cli tool written in python

Googlom avatar May 05 '20 14:05 Googlom