mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-18 06:57:52 +00:00
commit
2c6cf81159
@ -92,14 +92,18 @@ class Account extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderMenu = () => {
|
renderMenu = () => {
|
||||||
let isAdminPage = this.state.isStaff || this.state.isOrgStaff;
|
if (this.state.isStaff && this.props.isAdminPanel) {
|
||||||
|
|
||||||
if (isAdminPage && this.props.isAdminPanel) {
|
|
||||||
return (
|
return (
|
||||||
<a href={siteRoot} title={gettext('Exit Admin Panel')} className="item">{gettext('Exit Admin Panel')}</a>
|
<a href={siteRoot} title={gettext('Exit Admin Panel')} className="item">{gettext('Exit Admin Panel')}</a>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.state.isOrgStaff && this.props.isAdminPanel) {
|
||||||
|
return (
|
||||||
|
<a href={siteRoot} title={gettext('Exit Organization Admin')} className="item">{gettext('Exit Organization Admin')}</a>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.state.isStaff) {
|
if (this.state.isStaff) {
|
||||||
return (
|
return (
|
||||||
<a href={siteRoot + 'sys/useradmin/'} title={gettext('System Admin')} className="item">{gettext('System Admin')}</a>
|
<a href={siteRoot + 'sys/useradmin/'} title={gettext('System Admin')} className="item">{gettext('System Admin')}</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user