mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1838: cloudstack UI - volume page - listView, detailView - hide hypervisor field when log in as regular-user/domain-admin.
This commit is contained in:
parent
34a59fc3a7
commit
86a153c595
|
|
@ -34,6 +34,12 @@
|
|||
listView: {
|
||||
id: 'volumes',
|
||||
label: 'label.volumes',
|
||||
preFilter: function(args) {
|
||||
var hiddenFields = [];
|
||||
if(isAdmin() != true)
|
||||
hiddenFields.push('hypervisor');
|
||||
return hiddenFields;
|
||||
},
|
||||
fields: {
|
||||
name: { label: 'label.name' },
|
||||
type: { label: 'label.type' },
|
||||
|
|
@ -1113,7 +1119,7 @@
|
|||
hiddenFields = [];
|
||||
}
|
||||
else {
|
||||
hiddenFields = ["storage"];
|
||||
hiddenFields = ['storage', 'hypervisor'];
|
||||
}
|
||||
return hiddenFields;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue