@@ -7,7 +7,7 @@ import { renderComponent, branch, compose, withProps } from 'recompose'
77import { loadProjectDashboard } from '../actions/projectDashboard'
88import {
99 LOAD_PROJECT_FAILURE , PROJECT_ROLE_CUSTOMER , PROJECT_ROLE_OWNER ,
10- ROLE_ADMINISTRATOR , ROLE_CONNECT_MANAGER
10+ ROLE_ADMINISTRATOR
1111} from '../../config/constants'
1212import spinnerWhileLoading from '../../components/LoadingSpinner'
1313import CoderBot from '../../components/CoderBot/CoderBot'
@@ -30,7 +30,7 @@ const ProjectDetailView = (props) => {
3030 return React . cloneElement ( child , {
3131 project : props . project ,
3232 currentMemberRole : props . currentMemberRole ,
33- isManager : props . isManager
33+ isSuperUser : props . isSuperUser
3434 } )
3535 } )
3636 return < div > { children } </ div >
@@ -71,13 +71,13 @@ class ProjectDetail extends Component {
7171
7272 render ( ) {
7373 const currentMemberRole = this . getProjectRoleForCurrentUser ( this . props )
74- const managerRoles = [ ROLE_ADMINISTRATOR , ROLE_CONNECT_MANAGER ]
75- const isManager = this . props . currentUserRoles . some ( ( role ) => managerRoles . indexOf ( role ) !== - 1 )
74+ const powerRoles = [ ROLE_ADMINISTRATOR ]
75+ const isSuperUser = this . props . currentUserRoles . some ( ( role ) => powerRoles . indexOf ( role ) !== - 1 )
7676 return (
7777 < EnhancedProjectDetailView
7878 { ...this . props }
7979 currentMemberRole = { currentMemberRole }
80- isManager = { isManager }
80+ isSuperUser = { isSuperUser }
8181 />
8282 )
8383 }
@@ -97,13 +97,13 @@ const mapStateToProps = ({projectState, projectDashboard, loadUser}) => {
9797const mapDispatchToProps = { loadProjectDashboard }
9898
9999ProjectDetail . propTypes = {
100- project : PropTypes . object ,
100+ project : PropTypes . object ,
101101 currentUserId : PropTypes . number . isRequired ,
102102 error : PropTypes . oneOfType ( [
103103 PropTypes . bool ,
104104 PropTypes . object
105105 ] ) . isRequired ,
106- isLoading : PropTypes . bool . isRequired
106+ isLoading : PropTypes . bool . isRequired
107107}
108108
109109export default withRouter ( connect ( mapStateToProps , mapDispatchToProps ) ( ProjectDetail ) )
0 commit comments