MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / rightsNames

Function rightsNames

pkg/auth/rights/require.go:92–98  ·  view source on GitHub ↗
(rights ...ttnpb.Right)

Source from the content-addressed store, hash-verified

90)
91
92func rightsNames(rights ...ttnpb.Right) []string {
93 names := make([]string, len(rights))
94 for i, right := range rights {
95 names[i] = right.String()
96 }
97 return names
98}
99
100// RequireUniversal checks that the context contains the required universal rights.
101func RequireUniversal(ctx context.Context, required ...ttnpb.Right) error {

Callers 6

RequireUniversalFunction · 0.85
RequireApplicationFunction · 0.85
RequireClientFunction · 0.85
RequireGatewayFunction · 0.85
RequireOrganizationFunction · 0.85
RequireUserFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected