Skip to content

Commit

Permalink
fix logic check
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarebczan committed Nov 25, 2023
1 parent 9989639 commit 7cf03ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/moderation.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ func GetModerator(modChannelID, modChannelName, creatorChannelID, creatorChannel
if err != nil {
return nil, nil, errors.Err(err)
}
// check if exists and if not check if the mod is a global mod
if !exists || !isGlobalMod {
// check if exists and if not, check if the mod is a global mod
if !exists && !isGlobalMod {
return nil, nil, errors.Err("%s is not delegated by %s to be a moderator, or isn't a global mod", modChannel.Name, creatorChannel.Name)
}
}
Expand Down

0 comments on commit 7cf03ed

Please sign in to comment.