EE: Add the ability to restrict the user roles that can send team invites (#3442)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4c9b48da8f
Коммит
b97b3ae617
@@ -184,6 +184,16 @@ export default class SidebarRightMenu extends React.Component {
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
||||
if (global.window.mm_license.IsLicensed === 'true') {
|
||||
if (global.window.mm_config.RestrictTeamInvite === Constants.TEAM_INVITE_SYSTEM_ADMIN && !isSystemAdmin) {
|
||||
teamLink = null;
|
||||
inviteLink = null;
|
||||
} else if (global.window.mm_config.RestrictTeamInvite === Constants.TEAM_INVITE_TEAM_ADMIN && !isAdmin) {
|
||||
teamLink = null;
|
||||
inviteLink = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isAdmin) {
|
||||
|
||||
Ссылка в новой задаче
Block a user