1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-20 13:58:21 +02:00

Do not forward messages to Firebase if topic is not world-readable

This commit is contained in:
Philipp Heckel 2022-01-31 19:33:22 -05:00
parent 936e95fd9e
commit 198e2cfd90
5 changed files with 53 additions and 37 deletions

View file

@ -64,8 +64,8 @@ type User struct {
// Grant is a struct that represents an access control entry to a topic
type Grant struct {
TopicPattern string // May include wildcard (*)
Read bool
Write bool
AllowRead bool
AllowWrite bool
}
// Permission represents a read or write permission to a topic