1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 17:17:19 +00:00

Remove IsOwner, NumTeams from OrgUser (#3269)

This commit is contained in:
Ethan Koenig
2018-01-07 23:48:37 -08:00
committed by Lauris BH
parent cb868b7851
commit f48680888c
7 changed files with 63 additions and 77 deletions

View File

@ -425,7 +425,7 @@ func TestGetFeeds2(t *testing.T) {
// test with an organization user
assert.NoError(t, PrepareTestDatabase())
org := AssertExistsAndLoadBean(t, &User{ID: 3}).(*User)
userID := AssertExistsAndLoadBean(t, &OrgUser{OrgID: org.ID, IsOwner: true}).(*OrgUser).UID
const userID = 2 // user2 is an owner of the organization
actions, err := GetFeeds(GetFeedsOptions{
RequestedUser: org,