This commit is contained in:
1 parent
9bba2f0e92
commit
3ab3c21a09
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