Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TAG := $(shell git rev-list --tags --max-count=1)
VERSION := $(shell git describe --tags ${TAG})
.PHONY: build check fmt lint test test-race vet test-cover-html help install proto admin-app compose-up-dev
.DEFAULT_GOAL := build
PROTON_COMMIT := "b9075aad2d53ca74784a8d88a5a62e9ffd777d85"
PROTON_COMMIT := "7942a4c43d0d0a07688042bd97a92791f4d04d96"

admin-app:
@echo " > generating admin build"
Expand Down
7 changes: 4 additions & 3 deletions pkg/server/connect_interceptors/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,10 @@ var authorizationValidationMap = map[string]func(ctx context.Context, handler *v
pbReq := req.(*connect.Request[frontierv1beta1.ListInvoicesRequest])
return handler.IsAuthorized(ctx, relation.Object{Namespace: schema.OrganizationNamespace, ID: pbReq.Msg.GetOrgId()}, schema.UpdatePermission, req)
},
"/raystack.frontier.v1beta1.FrontierService/SearchOrganizationInvoices": func(ctx context.Context, handler *v1beta1connect.ConnectHandler, req connect.AnyRequest) error {
pbReq := req.(*connect.Request[frontierv1beta1.SearchOrganizationInvoicesRequest])
return handler.IsAuthorized(ctx, relation.Object{Namespace: schema.OrganizationNamespace, ID: pbReq.Msg.GetId()}, schema.UpdatePermission, req)
},
"/raystack.frontier.v1beta1.FrontierService/GetUpcomingInvoice": func(ctx context.Context, handler *v1beta1connect.ConnectHandler, req connect.AnyRequest) error {
pbReq := req.(*connect.Request[frontierv1beta1.GetUpcomingInvoiceRequest])
return handler.IsAuthorized(ctx, relation.Object{Namespace: schema.OrganizationNamespace, ID: pbReq.Msg.GetOrgId()}, schema.UpdatePermission, req)
Expand Down Expand Up @@ -1028,9 +1032,6 @@ var authorizationValidationMap = map[string]func(ctx context.Context, handler *v
"/raystack.frontier.v1beta1.AdminService/SearchProjectUsers": func(ctx context.Context, handler *v1beta1connect.ConnectHandler, req connect.AnyRequest) error {
return handler.IsSuperUser(ctx, req)
},
"/raystack.frontier.v1beta1.AdminService/SearchOrganizationInvoices": func(ctx context.Context, handler *v1beta1connect.ConnectHandler, req connect.AnyRequest) error {
return handler.IsSuperUser(ctx, req)
},
"/raystack.frontier.v1beta1.AdminService/SearchOrganizationTokens": func(ctx context.Context, handler *v1beta1connect.ConnectHandler, req connect.AnyRequest) error {
return handler.IsSuperUser(ctx, req)
},
Expand Down
3,188 changes: 1,438 additions & 1,750 deletions proto/v1beta1/admin.pb.go

Large diffs are not rendered by default.

Loading
Loading