检查点:保存安全方式二选一授权调整以补充回归覆盖
This commit is contained in:
1 parent
13c1cdcba3
commit
96656d9b21
12 files changed
+40
-20
No files matched your search
@@ -61,6 +61,7 @@ type AuditActor struct {
|
||||
SessionID string
|
||||
RecentAuth bool
|
||||
RecoveryCodeConfigured bool
|
||||
ExternalEmailConfigured bool
|
||||
}
|
||||
|
||||
type StepUpConfirmation struct {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user