(ctx context.Context, arg database.GetGroupMembersCountByGroupIDParams)
| 3521 | } |
| 3522 | |
| 3523 | func (q *querier) GetGroupMembersCountByGroupID(ctx context.Context, arg database.GetGroupMembersCountByGroupIDParams) (int64, error) { |
| 3524 | if _, err := q.GetGroupByID(ctx, arg.GroupID); err != nil { // AuthZ check |
| 3525 | return 0, err |
| 3526 | } |
| 3527 | memberCount, err := q.db.GetGroupMembersCountByGroupID(ctx, arg) |
| 3528 | if err != nil { |
| 3529 | return 0, err |
| 3530 | } |
| 3531 | return memberCount, nil |
| 3532 | } |
| 3533 | |
| 3534 | func (q *querier) GetGroupMembersCountByGroupIDs(ctx context.Context, arg database.GetGroupMembersCountByGroupIDsParams) ([]database.GetGroupMembersCountByGroupIDsRow, error) { |
| 3535 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceGroup); err != nil { |
nothing calls this directly
no test coverage detected