Skip to content

Commit babae99

Browse files
permission: allow permissive routes
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 9b5c0a8 commit babae99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/src/store/modules/permission.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ import { asyncRouterMap, constantRouterMap } from '@/config/router'
2020
function hasApi (apis, route) {
2121
if (route.meta && route.meta.permission) {
2222
for (const permission of route.meta.permission) {
23-
if (!apis.includes(permission)) {
24-
return false
23+
if (apis.includes(permission)) {
24+
return true
2525
}
2626
}
27+
return false
2728
}
2829
return true
2930
}

0 commit comments

Comments
 (0)