(ctx context.Context, userID *ttnpb.UserIdentifiers)
| 221 | } |
| 222 | |
| 223 | func (f accessFetcher) UserRights(ctx context.Context, userID *ttnpb.UserIdentifiers) (*ttnpb.Rights, error) { |
| 224 | cc := f.getConn(ctx) |
| 225 | if cc == nil { |
| 226 | return nil, errNoISConn.New() |
| 227 | } |
| 228 | callOpt, err := rpcmetadata.WithForwardedAuth(ctx, f.allowInsecure) |
| 229 | if err != nil { |
| 230 | return nil, err |
| 231 | } |
| 232 | ctx = rpcmetadata.WithForwardedRequestID(ctx) |
| 233 | rights, err := ttnpb.NewUserAccessClient(cc).ListRights(ctx, userID, callOpt) |
| 234 | registerRightsFetch(ctx, "user", rights, err) |
| 235 | if err != nil { |
| 236 | return nil, err |
| 237 | } |
| 238 | return rights, nil |
| 239 | } |
nothing calls this directly
no test coverage detected