Skip to content

Commit 86a153c

Browse files
author
Jessica Wang
committed
CLOUDSTACK-1838: cloudstack UI - volume page - listView, detailView - hide hypervisor field when log in as regular-user/domain-admin.
1 parent 34a59fc commit 86a153c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎ui/scripts/storage.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
listView: {
3535
id: 'volumes',
3636
label: 'label.volumes',
37+
preFilter: function(args) {
38+
var hiddenFields = [];
39+
if(isAdmin() != true)
40+
hiddenFields.push('hypervisor');
41+
return hiddenFields;
42+
},
3743
fields: {
3844
name: { label: 'label.name' },
3945
type: { label: 'label.type' },
@@ -1113,7 +1119,7 @@
11131119
hiddenFields = [];
11141120
}
11151121
else {
1116-
hiddenFields = ["storage"];
1122+
hiddenFields = ['storage', 'hypervisor'];
11171123
}
11181124
return hiddenFields;
11191125
},

0 commit comments

Comments
 (0)