authzed / zed

Official command-line tool for managing SpiceDB
https://authzed.com/docs/reference/clients
Apache License 2.0
118 stars 26 forks source link

Minor formatting bug for bulk permission check #422

Closed Hmast3rs closed 2 months ago

Hmast3rs commented 2 months ago

It seems like the formatting for doing bulk permission checks puts the subject object type and the object id the wrong way round in the console output. If I run, for example,

zed permission bulk project:id#manage@project:id

I get

project:id#manage@id:project => false

Presumably the object type should come first. Seems like there is a typo/misordering in the Printf internal/commands/permission.go line 333.

Minor issue with easy fix.