1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +00:00

sso to thirdpart website (#5401)

This commit is contained in:
mrwangjianhui
2023-03-15 15:40:19 +08:00
committed by GitHub
parent bc7494b94b
commit 4ca0986384
7 changed files with 59 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { Utils } from '../../utils/utils';
import { seafileAPI } from '../../utils/seafile-api';
import { siteRoot, gettext, appAvatarURL } from '../../utils/constants';
import { siteRoot, gettext, appAvatarURL, enableSSOToThirdpartWebsite } from '../../utils/constants';
import toaster from '../toast';
const propTypes = {
@@ -122,7 +122,7 @@ class Account extends Component {
};
} else if (isOrgStaff) {
data = {
url: `${siteRoot}org/info/`,
url: enableSSOToThirdpartWebsite ? `${siteRoot}sso-to-thirdpart/` : `${siteRoot}org/info/`,
text: gettext('Organization Admin')
};
} else if (isInstAdmin) {