File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/components/TeamManagement Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ class Dialog extends React.Component {
171171 type = "text"
172172 value = { this . state . inviteText }
173173 placeholder = "Enter one or more emails separated by ';' or comma ','"
174- disabled = { ! isMember || this . state . clearText }
174+ disabled = { ( ! currentUser . isAdmin && ! isMember ) || this . state . clearText }
175175 />
176176 { this . state . showAlreadyMemberError && < div className = "error-message" >
177177 Project Member(s) can't be invited again. Please remove them from list.
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ class Dialog extends React.Component {
239239 type = "text"
240240 value = { this . state . userText }
241241 placeholder = "Enter one or more user @handles separated by ';' or comma ','"
242- disabled = { ! isMember || this . state . clearText }
242+ disabled = { ( ! currentUser . isAdmin && ! isMember ) || this . state . clearText }
243243 />
244244 { this . state . showAlreadyMemberError && < div className = "error-message" >
245245 Project Member(s) can't be invited again. Please remove them from list.
You can’t perform that action at this time.
0 commit comments