Skip to content

Commit

Permalink
Update core/appeal/service.go
Browse files Browse the repository at this point in the history
Co-authored-by: Rahmat Hidayat <rahmatramahidayat@gmail.com>
  • Loading branch information
ravisuhag and rahmatrhd committed Sep 15, 2022
1 parent 1e55e42 commit d6eebb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/appeal/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func validateAppealDurationConfig(appeal *domain.Appeal, policy *domain.Policy)

func validateAppealOnBehalf(a *domain.Appeal, policy *domain.Policy) error {
if a.AccountType == domain.DefaultAppealAccountType {
if policy.AppealConfig != nil && policy.AppealConfig.AllowOnBehalf == true {
if policy.AppealConfig != nil && policy.AppealConfig.AllowOnBehalf {
return nil
}
if a.AccountID != a.CreatedBy {
Expand Down

0 comments on commit d6eebb2

Please sign in to comment.