forked from Gitlink/forgeplus-react
change user_permission
This commit is contained in:
parent
221cf4fa81
commit
6b5c5a52c4
|
@ -34,8 +34,7 @@ class MergeForm extends Component {
|
|||
this.set_defatul();
|
||||
};
|
||||
check_is_login =() =>{
|
||||
const { current_user } = this.props;
|
||||
if(!current_user){
|
||||
if(!this.props.checkIfLogin()){
|
||||
this.props.history.push("/403")
|
||||
return
|
||||
}
|
||||
|
|
|
@ -68,8 +68,7 @@ class Index extends Component {
|
|||
|
||||
}
|
||||
check_is_login =() =>{
|
||||
const { current_user } = this.props;
|
||||
if(!current_user){
|
||||
if(!this.props.checkIfLogin()){
|
||||
this.props.history.push("/403")
|
||||
return
|
||||
}
|
||||
|
|
|
@ -21,8 +21,7 @@ class NewMilepost extends Component {
|
|||
this.check_is_login();
|
||||
};
|
||||
check_is_login =() =>{
|
||||
const { current_user } = this.props;
|
||||
if(!current_user){
|
||||
if(!this.props.checkIfLogin()){
|
||||
this.props.history.push("/403")
|
||||
return
|
||||
}
|
||||
|
|
|
@ -43,8 +43,7 @@ class order_form extends Component {
|
|||
this.get_detail();
|
||||
};
|
||||
check_is_login =() =>{
|
||||
const { current_user } = this.props;
|
||||
if(!current_user){
|
||||
if(!this.props.checkIfLogin()){
|
||||
this.props.history.push("/403")
|
||||
return
|
||||
}
|
||||
|
|
|
@ -63,8 +63,7 @@ class Collaborator extends Component {
|
|||
};
|
||||
|
||||
check_is_login =() =>{
|
||||
const { current_user } = this.props;
|
||||
if(!current_user){
|
||||
if(!this.props.checkIfLogin()){
|
||||
this.props.history.push("/403")
|
||||
return
|
||||
}
|
||||
|
|
|
@ -25,8 +25,7 @@ class Setting extends Component {
|
|||
this.getInfo();
|
||||
};
|
||||
check_is_login =() =>{
|
||||
const { current_user } = this.props;
|
||||
if(!current_user){
|
||||
if(!this.props.checkIfLogin()){
|
||||
this.props.history.push("/403")
|
||||
return
|
||||
}
|
||||
|
|
|
@ -55,8 +55,7 @@ class NewTags extends Component {
|
|||
this.getList();
|
||||
};
|
||||
check_is_login =() =>{
|
||||
const { current_user } = this.props;
|
||||
if(!current_user){
|
||||
if(!this.props.checkIfLogin()){
|
||||
this.props.history.push("/403")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue