This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
commit 591737f4874d63789aa23d94f843707176c79146 Author: Rohit Yadav <[email protected]> AuthorDate: Mon Nov 25 00:49:13 2019 +0530 permission: allow permissive routes Signed-off-by: Rohit Yadav <[email protected]> --- src/store/modules/permission.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index e273683..4ab5c61 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -20,10 +20,11 @@ import { asyncRouterMap, constantRouterMap } from '@/config/router' function hasApi (apis, route) { if (route.meta && route.meta.permission) { for (const permission of route.meta.permission) { - if (!apis.includes(permission)) { - return false + if (apis.includes(permission)) { + return true } } + return false } return true }
