From 4895dfe0a83dc85b35a7a1061c12556db492938e Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Fri, 20 Sep 2024 12:53:19 -0700 Subject: [PATCH] Fix print order of relation --- internal/commands/permission.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/commands/permission.go b/internal/commands/permission.go index 5e6b4fe..6fbf020 100644 --- a/internal/commands/permission.go +++ b/internal/commands/permission.go @@ -344,7 +344,7 @@ func checkBulkCmdFunc(cmd *cobra.Command, args []string) error { for _, item := range resp.Pairs { console.Printf("%s:%s#%s@%s:%s => ", - item.Request.Resource.ObjectType, item.Request.Resource.ObjectId, item.Request.Permission, item.Request.Subject.Object.ObjectId, item.Request.Subject.Object.ObjectType) + item.Request.Resource.ObjectType, item.Request.Resource.ObjectId, item.Request.Permission, item.Request.Subject.Object.ObjectType, item.Request.Subject.Object.ObjectId) switch responseType := item.Response.(type) { case *v1.CheckBulkPermissionsPair_Item: