make Broadcast- and IsolationURI visible to admin (#2520)

This commit is contained in:
dahn 2018-04-02 21:55:18 +00:00 committed by GitHub
parent 43f2a28d65
commit 23ae6762bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -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) {