Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CmsPetrolPay
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
11
Issues
11
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
CmsPetrolPay
Commits
422f6984
Commit
422f6984
authored
Feb 22, 2024
by
tdgiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
4c108e10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AuthGuard.jsx
src/app/auth/AuthGuard.jsx
+3
-3
No files found.
src/app/auth/AuthGuard.jsx
View file @
422f6984
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment