Skip to content

Commit

Permalink
IS-1336 Fix s12perm error message typo (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckoy committed Oct 19, 2021
1 parent 8e9904b commit a9ff7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protobuf/protoc-gen-s12perm/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func genUnaryInterceptor(g *protogen.GeneratedFile, srv *protogen.Service) {
perms = append(perms, fmt.Sprintf("%s(%q)", g.QualifiedGoIdent(jwtclaimsPackage.Ident("Permission")), perm))
}
g.P("if !c.HasPermission(", strings.Join(perms, ", "), ") {")
g.P(logPackage.Ident("Println"), "(\"s12perm: claims does contain the required permissions\")")
g.P(logPackage.Ident("Println"), "(\"s12perm: claims does not contain the required permissions\")")
g.P("return ctx, ", grpcstatusPackage.Ident("Errorf"), "(", grpccodesPackage.Ident("PermissionDenied"), ", ", "\"Permission Denied\"", ")")
g.P("}")
g.P("}")
Expand Down

0 comments on commit a9ff7f4

Please sign in to comment.