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