Skip to content

Commit

Permalink
fix: modify the error message returned (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
littlejiancc authored Sep 7, 2021
1 parent 5023bef commit 2b01c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gittar/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func ValidaUserRepo(c *webcontext.Context, userId string, repo *models.Repo) (*A
return nil, err
}
if !permission.Access {
return nil, errors.New(fmt.Sprintf("no permission to access,userID: %s, appID: %d", userId, repo.AppID))
return nil, errors.New("no permission to access")
}
return &AuthResp{
Repo: repo,
Expand Down

0 comments on commit 2b01c6b

Please sign in to comment.