change user_permission

This commit is contained in:
sylor_huang@126.com 2020-07-02 14:40:57 +08:00
parent 221cf4fa81
commit 6b5c5a52c4
7 changed files with 7 additions and 14 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}