BryanMLima commented on code in PR #8978:
URL: https://github.com/apache/cloudstack/pull/8978#discussion_r1580985185
##########
ui/src/store/modules/permission.js:
##########
@@ -17,24 +17,39 @@
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
- }
- }
+function hasAccessToRoute (apis, route) {
+ if (!route.meta || !route.meta.permission) {
Review Comment:
Never mind, did not see it was already merged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]