You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/09/11 10:15:59 UTC
[cloudstack-primate] branch master updated: VPN user: hide field by
regular user (#688)
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 032eaa9 VPN user: hide field by regular user (#688)
032eaa9 is described below
commit 032eaa98d4e1e1b041aa684b754fe836be3b9e18
Author: Hoang Nguyen <ho...@unitech.vn>
AuthorDate: Fri Sep 11 12:15:52 2020 +0200
VPN user: hide field by regular user (#688)
---
src/config/section/network.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/config/section/network.js b/src/config/section/network.js
index c1b7e72..fe213bd 100644
--- a/src/config/section/network.js
+++ b/src/config/section/network.js
@@ -550,7 +550,13 @@ export default {
icon: 'plus',
label: 'label.add.vpn.user',
listView: true,
- args: ['username', 'password', 'domainid', 'account']
+ args: (record, store) => {
+ if (store.userInfo.roletype === 'User') {
+ return ['username', 'password']
+ }
+
+ return ['username', 'password', 'domainid', 'account']
+ }
},
{
api: 'removeVpnUser',