From 998814333fdedc4fd8a433d4fa81d6b5e089a9d4 Mon Sep 17 00:00:00 2001 From: Raul Fernandez Date: Mon, 9 Sep 2024 12:40:48 +0200 Subject: [PATCH 1/2] Fix misassigned type. --- acl.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acl.go b/acl.go index 18e7f10..4802c63 100644 --- a/acl.go +++ b/acl.go @@ -97,9 +97,9 @@ type Policy struct { AdminAccess bool `json:"admin_access"` AppAccess bool `json:"app_access"` - Users []string `json:"users,omitempty"` - Roles []string `json:"roles,omitempty"` - Permissions []*Permission `json:"permissions,omitempty"` + Users []string `json:"users,omitempty"` + Roles []string `json:"roles,omitempty"` + Permissions []*int64 `json:"permissions,omitempty"` Unknown map[string]any `json:"-"` } From 39ad95a6475eea8328202058e9bb788451b31f6d Mon Sep 17 00:00:00 2001 From: Raul Fernandez Date: Mon, 9 Sep 2024 23:19:55 +0200 Subject: [PATCH 2/2] Does not use pointer to basic type. --- acl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acl.go b/acl.go index 4802c63..b647f0c 100644 --- a/acl.go +++ b/acl.go @@ -99,7 +99,7 @@ type Policy struct { Users []string `json:"users,omitempty"` Roles []string `json:"roles,omitempty"` - Permissions []*int64 `json:"permissions,omitempty"` + Permissions []int64 `json:"permissions,omitempty"` Unknown map[string]any `json:"-"` }