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:
@@ -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({
|
||||
|
Reference in New Issue
Block a user