One more fix

This commit is contained in:
harryzcy 2022-11-01 02:04:09 -04:00
parent dc6ac14cc6
commit 853eb68d23
No known key found for this signature in database
GPG key ID: CC2953E050C19686

View file

@ -238,7 +238,7 @@ func TestAPITeamSearch(t *testing.T) {
// no access if not organization member
user5 := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 5})
token5 := getUserToken(t, user5.Name)
token5 := getUserToken(t, user5.Name, "read_org")
req = NewRequestf(t, "GET", "/api/v1/orgs/%s/teams/search?q=%s&token=%s", org.Name, "team", token5)
MakeRequest(t, req, http.StatusForbidden)