mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-30 09:40:50 +00:00
fix(packages): restrict/limited/token-scope access (#39041, #39043, #39044, #39047, #39046) (#39058)
This commit is contained in:
@@ -77,6 +77,9 @@ func TestUserOrgs(t *testing.T) {
|
||||
orgs = getUserOrgs(t, unrelatedUsername, privateMemberUsername)
|
||||
assert.Empty(t, orgs)
|
||||
|
||||
orgs = getUserOrgs(t, "user29", adminUsername)
|
||||
assert.Empty(t, orgs)
|
||||
|
||||
// not authenticated call should not be allowed
|
||||
testUserOrgsUnauthenticated(t, privateMemberUsername)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user