Skip to content

Commit

Permalink
avoid direct access to proto field perms.Account and `perms.Permiss…
Browse files Browse the repository at this point in the history
…ions`
  • Loading branch information
Pantani committed Mar 2, 2025
1 parent 794456a commit 401f8ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ignite/templates/app/files-minimal/app/app.go.plush
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig
func GetMaccPerms() map[string][]string {
dup := make(map[string][]string)
for _, perms := range moduleAccPerms {
dup[perms.Account] = perms.Permissions
dup[perms.GetAccount()] = perms.GetPermissions()
}

return dup
Expand Down
2 changes: 1 addition & 1 deletion ignite/templates/app/files/app/app.go.plush
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig
func GetMaccPerms() map[string][]string {
dup := make(map[string][]string)
for _, perms := range moduleAccPerms {
dup[perms.Account] = perms.Permissions
dup[perms.GetAccount()] = perms.GetPermissions()
}

return dup
Expand Down

0 comments on commit 401f8ae

Please sign in to comment.