File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
components/TeamManagement Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ class ProjectManagementDialog extends React.Component {
9393 } = this . props
9494 const canManageCopilots = hasPermission ( PERMISSIONS . MANAGE_COPILOTS )
9595 const canRemoveCopilots = hasPermission ( PERMISSIONS . REMOVE_COPILOTS )
96+ const canInviteCopilots = hasPermission ( PERMISSIONS . INVITE_COPILOTS )
9697 const showSuggestions = hasPermission ( PERMISSIONS . SEE_MEMBER_SUGGESTIONS )
9798 let i = 0
9899 return (
@@ -182,7 +183,7 @@ class ProjectManagementDialog extends React.Component {
182183 { i === 0 && ! canManageCopilots && < div className = "dialog-no-members" /> }
183184 </ div >
184185
185- { ( canManageCopilots || canRemoveCopilots ) && (
186+ { canInviteCopilots && (
186187 < div className = "input-container" >
187188 < div className = "hint" > invite more copilots</ div >
188189 < AutocompleteInputContainer
@@ -209,7 +210,7 @@ class ProjectManagementDialog extends React.Component {
209210 </ button >
210211 </ div >
211212 ) }
212- { ! canManageCopilots && < div className = "dialog-placeholder" /> }
213+ { ! canInviteCopilots && < div className = "dialog-placeholder" /> }
213214 </ div >
214215
215216 </ Modal >
Original file line number Diff line number Diff line change @@ -252,6 +252,17 @@ export const PERMISSIONS = {
252252 projectRoles : [ PROJECT_ROLE_COPILOT ] ,
253253 } ,
254254
255+ INVITE_COPILOTS : {
256+ meta : {
257+ group : 'Project Members' ,
258+ title : 'Invite Copilots' ,
259+ description : 'Invite copilots to the project.' ,
260+ } ,
261+ topcoderRoles : [
262+ ...TOPCODER_ADMINS
263+ ]
264+ } ,
265+
255266 MANAGE_TOPCODER_TEAM : {
256267 meta : {
257268 group : 'Project Members' ,
You can’t perform that action at this time.
0 commit comments