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