Commit 336123e0 authored by Jesús Espino's avatar Jesús Espino Committed by Carlos Tadeu Panato Junior

MM-10890: Restore the previous behavior avoiding system admins removing itself...

MM-10890: Restore the previous behavior avoiding system admins removing itself from team admin (#1324)
parent adbbae7e
......@@ -189,7 +189,7 @@ export default class TeamMembersDropdown extends React.Component {
}
const me = UserStore.getCurrentUser();
let showMakeMember = (Utils.isAdmin(teamMember.roles) && !Utils.isSystemAdmin(user.roles)) || teamMember.scheme_admin;
let showMakeMember = (Utils.isAdmin(teamMember.roles) || teamMember.scheme_admin) && !Utils.isSystemAdmin(user.roles);
let showMakeAdmin = !Utils.isAdmin(teamMember.roles) && !Utils.isSystemAdmin(user.roles) && !teamMember.scheme_admin;
let showMakeActive = false;
let showMakeNotActive = Utils.isSystemAdmin(user.roles);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment