(rights ...ttnpb.Right)
| 90 | ) |
| 91 | |
| 92 | func 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. |
| 101 | func RequireUniversal(ctx context.Context, required ...ttnpb.Right) error { |
no test coverage detected