CLOUDSTACK-1838: cloudstack UI - volume page - listView, detailView - hide hypervisor field when log in as regular-user/domain-admin.

This commit is contained in:
Jessica Wang 2013-03-28 14:38:17 -07:00
parent 34a59fc3a7
commit 86a153c595
1 changed files with 7 additions and 1 deletions

View File

@ -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;
},