Bug 1156374

Summary: Admin member in domain could not view the team in the same domain
Product: OpenShift Online Reporter: Wei Sun <wsun>
Component: Management ConsoleAssignee: Fabiano Franz <ffranz>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jliggitt, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1156605 (view as bug list) Environment:
Last Closed: 2015-02-18 16:52:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1156605    
Attachments:
Description Flags
team.log none

Description Wei Sun 2014-10-24 10:14:35 UTC
Created attachment 950313 [details]
team.log

Description of problem:
Add a team(team1) as view member to the domain,and add one account (account2) as admin member to the same domain.Try to view team1 with account2,but it failed.

The bug only could be reproduced on website,if I use rhc client,it's ok.
Please refer to devenv.log in attachment

Version-Release number of selected component (if applicable):
devenv-stage_1078
STG (devenv-stage_1078)

How reproducible:
Always

Steps to Reproduce:
1.Log in website with account1
2.Create a team named team1
3.Add team1 as view member to domain(domain1)
4.Add another user(account2) as admin member to the same domain(domain1)
5.Log in website with account2
6.Access app/console/domain/domain1
7.Click "team1"
8.Click "View this team"

Actual results:
8.Could not view the team, it shows "
We appear to be having technical difficulties" on the page "app/console/team/$teamid" 

Expected results:
Could view the team with admin member

Additional info:

Comment 1 Jordan Liggitt 2014-10-24 13:17:59 UTC
Team#can_leave? should ensure the user is a member of the team

Comment 2 Fabiano Franz 2014-10-24 18:29:44 UTC
Fixed in https://github.com/openshift/origin-server/pull/5905

Comment 3 openshift-github-bot 2014-10-24 19:14:59 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/984877d35e703e7a6c56a9c073b871ca286e2776
Bug 1156374 - domain admin member must be able to see domain teams

Comment 4 Wei Sun 2014-10-27 03:22:59 UTC
Verified on devenv-stage_1082.Now admin member in domain could  view the team in the same domain