检查点:保存安全方式二选一授权调整以补充回归覆盖
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-10-02 18:33:48 +08:00
1 parent 9bba2f0e92
commit 3ab3c21a09
12 files changed
+40 -20

No files matched your search

+1
View File
@@ -61,6 +61,7 @@ type AuditActor struct {
SessionID string
RecentAuth bool
RecoveryCodeConfigured bool
ExternalEmailConfigured bool
}
type StepUpConfirmation struct {
+1
View File
@@ -166,6 +166,7 @@ func DefaultConfigAuthorization(_ context.Context, actor AuditActor, operation C
Capability: capability,
RecentAuth: actor.RecentAuth,
RecoveryCodeConfigured: actor.RecoveryCodeConfigured,
ExternalEmailConfigured: actor.ExternalEmailConfigured,
}
if operation == ConfigOperationRollback && request.ActorRole == access.RoleSuperAdmin {
if !request.RecentAuth {