mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 13534: template page - remove "All" drop down choice from regular user UI
This commit is contained in:
parent
a4c891d002
commit
13f059d07e
@ -14,7 +14,15 @@
|
|||||||
id: 'templates',
|
id: 'templates',
|
||||||
label: 'Templates',
|
label: 'Templates',
|
||||||
filters: {
|
filters: {
|
||||||
all: { label: 'All' },
|
all: {
|
||||||
|
preFilter: function(args) {
|
||||||
|
if (isAdmin() || isDomainAdmin())
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
label: 'All'
|
||||||
|
},
|
||||||
mine: { label: 'Mine' },
|
mine: { label: 'Mine' },
|
||||||
featured: { label: 'Featured' },
|
featured: { label: 'Featured' },
|
||||||
community: { label: 'Community' }
|
community: { label: 'Community' }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user