1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

[invitations] fixup (#3964)

This commit is contained in:
llj
2019-08-09 14:15:58 +08:00
committed by Daniel Pan
parent 29b5aa0184
commit c9b99ad700

View File

@@ -13,10 +13,6 @@ import EmptyTip from '../../components/empty-tip';
import '../../css/invitations.css'; import '../../css/invitations.css';
if (!canInvitePeople) {
location.href = siteRoot;
}
class Item extends React.Component { class Item extends React.Component {
constructor(props) { constructor(props) {
@@ -192,7 +188,7 @@ class InvitationsView extends React.Component {
this.setState({ this.setState({
loading: false, loading: false,
errorMsg: gettext('Permission denied') errorMsg: gettext('Permission denied')
}); });
location.href = `${loginUrl}?next=${encodeURIComponent(location.href)}`; location.href = `${loginUrl}?next=${encodeURIComponent(location.href)}`;
} else { } else {
this.setState({ this.setState({