mirror of https://github.com/apache/cloudstack.git
make Broadcast- and IsolationURI visible to admin (#2520)
This commit is contained in:
parent
43f2a28d65
commit
23ae6762bd
|
|
@ -2835,6 +2835,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
preFilter: function(args) {
|
||||
var hiddenFields;
|
||||
if (isAdmin()) {
|
||||
hiddenFields = [];
|
||||
} else {
|
||||
hiddenFields = ["broadcasturi", "isolationuri"];
|
||||
}
|
||||
|
||||
return hiddenFields;
|
||||
},
|
||||
fields: [{
|
||||
id: {
|
||||
label: 'label.id'
|
||||
|
|
@ -2871,7 +2881,12 @@
|
|||
ip6cidr: {
|
||||
label: 'label.ipv6.CIDR'
|
||||
},
|
||||
|
||||
broadcasturi : {
|
||||
label: 'label.broadcast.uri'
|
||||
},
|
||||
isolationuri : {
|
||||
label: 'label.isolation.uri'
|
||||
},
|
||||
isdefault: {
|
||||
label: 'label.is.default',
|
||||
converter: function(data) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue