Skip to content

Commit b530ab1

Browse files
committed
code changes
1 parent 489f51b commit b530ab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/role/role_resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ func (r *roleResource) mapToAccessRequestConfig(config *sailpoint_v3.Requestabil
724724
commentsRequired := config.CommentsRequired.Get()
725725
denialCommentsRequired := config.DenialCommentsRequired.Get()
726726

727-
if (commentsRequired == nil || *commentsRequired == false) &&
728-
(denialCommentsRequired == nil || *denialCommentsRequired == false) &&
727+
if (commentsRequired == nil || !*commentsRequired) &&
728+
(denialCommentsRequired == nil || !*denialCommentsRequired) &&
729729
len(config.ApprovalSchemes) == 0 {
730730
return &requestConfig{
731731
CommentsRequired: types.BoolPointerValue(nil), // Ensure empty object instead of null

0 commit comments

Comments
 (0)