Skip to content

Commit

Permalink
fix(auth): wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisin0 committed Jul 17, 2024
1 parent 7a62adf commit 0071a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import "github.com/Jisin0/TGMessageStore/config"
// It returns true if ALLOW_PUBLIC is set to true or checks the Admins list.
// An empty admin list would also result in a success.
func CheckUser(userID int64) bool {
if !config.AllowPublic {
return false
if config.AllowPublic {
return true
}

for _, i := range config.Admins {
Expand Down

0 comments on commit 0071a6c

Please sign in to comment.