Commit 422f6984 by tdgiang

update code

parent 4c108e10
...@@ -22,8 +22,8 @@ import { ...@@ -22,8 +22,8 @@ import {
const getUserRoleAuthStatus = (pathname, user) => { const getUserRoleAuthStatus = (pathname, user) => {
console.log("pathname",pathname)
return true //return true
if(pathname==='/dashboard/default' || pathname==='/' || pathname=="/dashboard") if(pathname==='/dashboard/default' || pathname==='/' || pathname=="/dashboard")
return true return true
...@@ -31,7 +31,7 @@ const getUserRoleAuthStatus = (pathname, user) => { ...@@ -31,7 +31,7 @@ const getUserRoleAuthStatus = (pathname, user) => {
if(user.is_sysadmin){ if(user.is_sysadmin){
return true return true
}else{ }else{
let flag=false; let flag=false;
user.listPath.map(e=>{ user.listPath.map(e=>{
if(e==pathname) if(e==pathname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment