Commit 422f6984 by tdgiang

update code

parent 4c108e10
......@@ -22,8 +22,8 @@ import {
const getUserRoleAuthStatus = (pathname, user) => {
console.log("pathname",pathname)
return true
//return true
if(pathname==='/dashboard/default' || pathname==='/' || pathname=="/dashboard")
return true
......@@ -31,7 +31,7 @@ const getUserRoleAuthStatus = (pathname, user) => {
if(user.is_sysadmin){
return true
}else{
let flag=false;
user.listPath.map(e=>{
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