Skip to content

Commit ab2e3b9

Browse files
author
Jessica Wang
committed
CLOUDSTACK-2678: portable IP ranges - regions menu - region detailView - show "View Portable IP Ranges" for root-admin, hide it for regular-user/domain-admin.
1 parent 6e55776 commit ab2e3b9

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

ui/scripts/regions.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,20 @@
117117
detailView: {
118118
name: 'Region details',
119119
viewAll: [
120-
{ path: 'regions.GSLB', label: 'GSLB' },
121-
{ path: 'regions.portableIpRanges', label: 'Portable IP' }
120+
{
121+
path: 'regions.GSLB',
122+
label: 'GSLB'
123+
},
124+
{
125+
path: 'regions.portableIpRanges',
126+
label: 'Portable IP',
127+
preFilter: function(args) {
128+
if (isAdmin())
129+
return true;
130+
131+
return false;
132+
}
133+
}
122134
],
123135
actions: {
124136
edit: {

0 commit comments

Comments
 (0)