diff --git a/frontend/src/components/common/account.js b/frontend/src/components/common/account.js index 379e3d52250..7afc6c23f35 100644 --- a/frontend/src/components/common/account.js +++ b/frontend/src/components/common/account.js @@ -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, enableSSOToThirdpartWebsite } from '../../utils/constants'; +import { siteRoot, isPro, gettext, appAvatarURL, enableSSOToThirdpartWebsite } from '../../utils/constants'; import toaster from '../toast'; const { @@ -131,7 +131,7 @@ class Account extends Component { url: `${siteRoot}org/info/`, text: gettext('Organization Admin') }; - } else if (isInstAdmin) { + } else if (isPro && isInstAdmin) { data = { url: `${siteRoot}inst/useradmin/`, text: gettext('Institution Admin') diff --git a/frontend/src/pages/sys-admin/side-panel.js b/frontend/src/pages/sys-admin/side-panel.js index e76452b0c97..47ce2b7bb3d 100644 --- a/frontend/src/pages/sys-admin/side-panel.js +++ b/frontend/src/pages/sys-admin/side-panel.js @@ -139,7 +139,7 @@ class SidePanel extends React.Component { } - {multiInstitution && otherPermission && + {isPro && multiInstitution && otherPermission &&