File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,24 @@ func TestPrivateOrg(t *testing.T) {
116116 session .MakeRequest (t , req , http .StatusOK )
117117}
118118
119+ func TestOrgMembers (t * testing.T ) {
120+ defer prepareTestEnv (t )()
121+
122+ // not logged in user
123+ req := NewRequest (t , "GET" , "/org/org25/members" )
124+ MakeRequest (t , req , http .StatusOK )
125+
126+ // org member
127+ session := loginUser (t , "user24" )
128+ req = NewRequest (t , "GET" , "/org/org25/members" )
129+ session .MakeRequest (t , req , http .StatusOK )
130+
131+ // site admin
132+ session = loginUser (t , "user1" )
133+ req = NewRequest (t , "GET" , "/org/org25/members" )
134+ session .MakeRequest (t , req , http .StatusOK )
135+ }
136+
119137func TestOrgRestrictedUser (t * testing.T ) {
120138 defer prepareTestEnv (t )()
121139
Original file line number Diff line number Diff line change 2929 {{end}}
3030 </div>
3131 </div>
32- {{if not .PublicOnly}}
32+ {{if not $ .PublicOnly}}
3333 <div class="ui three wide column center">
3434 <div class="meta">
3535 {{$.locale.Tr "org.members.member_role"}}
You can’t perform that action at this time.
0 commit comments