@@ -176,7 +176,7 @@ async fn test_get_team_organization() {
176
176
& test_env. dummy . organization_zeta . organization_id ;
177
177
let zeta_team_id = & test_env. dummy . organization_zeta . team_id ;
178
178
179
- // A non-member of the team should get basic info but not be able to see private data
179
+ // A non-member of the team should get basic team info
180
180
let members = api
181
181
. get_team_members_deserialized_common (
182
182
zeta_team_id,
@@ -187,15 +187,6 @@ async fn test_get_team_organization() {
187
187
assert_eq ! ( members[ 0 ] . user. id. 0 , USER_USER_ID_PARSED as u64 ) ;
188
188
assert ! ( members[ 0 ] . permissions. is_none( ) ) ;
189
189
190
- let members = api
191
- . get_organization_members_deserialized_common (
192
- zeta_organization_id,
193
- FRIEND_USER_PAT ,
194
- )
195
- . await ;
196
- assert_eq ! ( members. len( ) , 1 ) ;
197
- assert_eq ! ( members[ 0 ] . user. id. 0 , USER_USER_ID_PARSED as u64 ) ;
198
-
199
190
// A non-accepted member of the team should:
200
191
// - not be able to see private data about the team, but see all members including themselves
201
192
// - should not appear in the team members list to enemy users
@@ -262,15 +253,6 @@ async fn test_get_team_organization() {
262
253
. await ;
263
254
assert_eq ! ( members. len( ) , 1 ) ; // Only USER_USER_ID should be in the team
264
255
265
- // enemy team check via association
266
- let members = api
267
- . get_organization_members_deserialized_common (
268
- zeta_organization_id,
269
- ENEMY_USER_PAT ,
270
- )
271
- . await ;
272
- assert_eq ! ( members. len( ) , 1 ) ; // Only USER_USER_ID should be in the team
273
-
274
256
// An accepted member of the team should appear in the team members list
275
257
// and should be able to see private data about the team
276
258
let resp = api. join_team ( zeta_team_id, FRIEND_USER_PAT ) . await ;
0 commit comments