Skip to content

Commit d0721c5

Browse files
SadiJrSadiJr
andauthored
ui: Change permission to access console proxy button (#5625)
This PR fixes #5623. Also, some more information that is not present in the issue in question: Although the proxy console access button does not appear in the UI, users with access permission to the VM in question have access to the console as well. Simply generate the console access link using another user, copy that link, and, on the user without access to the console button, type that link. Co-authored-by: SadiJr <sadi@scclouds.com.br>
1 parent 7791b3c commit d0721c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/widgets/Console.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<template>
1919
<a
20-
v-if="['vm', 'systemvm', 'router', 'ilbvm'].includes($route.meta.name) && 'updateVirtualMachine' in $store.getters.apis"
20+
v-if="['vm', 'systemvm', 'router', 'ilbvm'].includes($route.meta.name) && 'listVirtualMachines' in $store.getters.apis"
2121
:href="server + '/console?cmd=access&vm=' + resource.id"
2222
target="_blank">
2323
<a-button style="margin-left: 5px" shape="circle" type="dashed" :size="size" :disabled="['Stopped', 'Error', 'Destroyed'].includes(resource.state)" >

0 commit comments

Comments
 (0)