summaryrefslogtreecommitdiffstats
path: root/models/action_test.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2018-01-07 23:48:37 -0800
committerLauris BH <lauris@nix.lv>2018-01-08 09:48:37 +0200
commitf48680888c14ad3dfe9cadb8efa4c8221731b71e (patch)
tree441f01ee6e43df6e28f86242dd983b2f52af8c8b /models/action_test.go
parentcb868b78513b666905c8cd4facca68ed54c7f814 (diff)
downloadgitea-f48680888c14ad3dfe9cadb8efa4c8221731b71e.tar.gz
gitea-f48680888c14ad3dfe9cadb8efa4c8221731b71e.zip
Remove IsOwner, NumTeams from OrgUser (#3269)
Diffstat (limited to 'models/action_test.go')
-rw-r--r--models/action_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action_test.go b/models/action_test.go
index 0169179050..e0a3e21237 100644
--- a/models/action_test.go
+++ b/models/action_test.go
@@ -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,