isUserOrgAdmin checks if the current user is an org admin or owner
(ctx context.Context)
| 363 | |
| 364 | // isUserOrgAdmin checks if the current user is an org admin or owner |
| 365 | func isUserOrgAdmin(ctx context.Context) bool { |
| 366 | userRole := usercontext.CurrentAuthzSubject(ctx) |
| 367 | return authz.Role(userRole).IsAdmin() |
| 368 | } |
| 369 | |
| 370 | // initializePaginationOpts initializes the pagination options with the provided request pagination options. |
| 371 | func initializePaginationOpts(reqPagination *pb.OffsetPaginationRequest) (*pagination.OffsetPaginationOpts, error) { |
no test coverage detected