1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-09-27 14:00:23 +02:00

Fix bug in test

This commit is contained in:
binwiederhier 2025-07-27 22:33:29 +02:00
parent 0e67228605
commit 07e9670a09
4 changed files with 88 additions and 23 deletions

View file

@ -197,7 +197,7 @@ func showUsers(c *cli.Context, manager *user.Manager, users []*user.User) error
}
provisioned := ""
if u.Provisioned {
provisioned = ", provisioned user"
provisioned = ", server config"
}
fmt.Fprintf(c.App.ErrWriter, "user %s (role: %s, tier: %s%s)\n", u.Name, u.Role, tier, provisioned)
if u.Role == user.RoleAdmin {
@ -206,7 +206,7 @@ func showUsers(c *cli.Context, manager *user.Manager, users []*user.User) error
for _, grant := range grants {
grantProvisioned := ""
if grant.Provisioned {
grantProvisioned = ", provisioned access entry"
grantProvisioned = " (server config)"
}
if grant.Permission.IsReadWrite() {
fmt.Fprintf(c.App.ErrWriter, "- read-write access to topic %s%s\n", grant.TopicPattern, grantProvisioned)