Skip to content

Commit d206c32

Browse files
committed
update comments
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 8ffe0b8 commit d206c32

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/controlplane/internal/server/grpc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func craftMiddleware(opts *Opts) []middleware.Middleware {
211211
selector.Server(
212212
// 2.d- Set its organization
213213
usercontext.WithCurrentOrganizationMiddleware(opts.UserUseCase, opts.OrganizationUseCase, logHelper),
214-
// 2.e- Block write operations on suspended orgs
214+
// 2.e- Block all operations on suspended orgs
215215
usercontext.WithSuspensionMiddleware(),
216216
// 3 - Check user/token authorization
217217
authzMiddleware.WithAuthzMiddleware(opts.AuthzUseCase, logHelper),
@@ -253,7 +253,7 @@ func craftMiddleware(opts *Opts) []middleware.Middleware {
253253
usercontext.WithAttestationContextFromFederatedInfo(opts.OrganizationUseCase, logHelper),
254254
// Store all memberships in the context
255255
usercontext.WithCurrentMembershipsMiddleware(opts.MembershipUseCase, opts.MembershipsCache),
256-
// 2.e - Block write operations on suspended orgs
256+
// 2.e - Block all operations on suspended orgs
257257
usercontext.WithSuspensionMiddleware(),
258258
// 3 - Update API Token last usage
259259
usercontext.WithAPITokenUsageUpdater(opts.APITokenUseCase, logHelper),

app/controlplane/pkg/biz/organization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type Organization struct {
4848
APITokenInactivityThresholdDays *int
4949
// EnableAIAgentCollector enables automatic AI agent config collection during attestation init
5050
EnableAIAgentCollector bool
51-
// Suspended indicates whether the organization is suspended (read-only mode)
51+
// Suspended indicates whether the organization is suspended
5252
Suspended bool
5353
}
5454

app/controlplane/pkg/data/ent/schema/organization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (Organization) Fields() []ent.Field {
6060
field.Int("api_token_inactivity_threshold_days").Optional().Nillable(),
6161
// enable_ai_agent_collector enables automatic AI agent config collection during attestation init
6262
field.Bool("enable_ai_agent_collector").Default(false),
63-
// Suspended orgs are restricted to read-only operations.
63+
// Suspended orgs are blocked from all operations.
6464
field.Bool("suspended").Default(false),
6565
}
6666
}

0 commit comments

Comments
 (0)