1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +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';
if (!canInvitePeople) {
location.href = siteRoot;
}
class Item extends React.Component {
constructor(props) {
@@ -192,7 +188,7 @@ class InvitationsView extends React.Component {
this.setState({
loading: false,
errorMsg: gettext('Permission denied')
});
});
location.href = `${loginUrl}?next=${encodeURIComponent(location.href)}`;
} else {
this.setState({