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
The following commit(s) were added to refs/heads/master by this push: new 51d5fc0 compute: fix non-admin start VM args (#328) 51d5fc0 is described below commit 51d5fc051630921d53619f929bdf09e5df9ab6a3 Author: Abhishek Kumar <abhishek.mr...@gmail.com> AuthorDate: Thu May 7 14:19:51 2020 +0530 compute: fix non-admin start VM args (#328) Signed-off-by: Abhishek Kumar <abhishek.mr...@gmail.com> --- src/config/section/compute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/section/compute.js b/src/config/section/compute.js index 05dba6e..b19d398 100644 --- a/src/config/section/compute.js +++ b/src/config/section/compute.js @@ -86,7 +86,7 @@ export default { dataView: true, groupAction: true, show: (record) => { return ['Stopped'].includes(record.state) }, - args: ['podid', 'clusterid', 'hostid'], + args: (record, store) => { return ['Admin'].includes(store.userInfo.roletype) ? ['podid', 'clusterid', 'hostid'] : [] }, response: (result) => { return result.virtualmachine && result.virtualmachine.password ? `Password of the VM is ${result.virtualmachine.password}` : null } }, {