diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index 78599461e35..1303646bc15 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -14,7 +14,15 @@ id: 'templates', label: 'Templates', filters: { - all: { label: 'All' }, + all: { + preFilter: function(args) { + if (isAdmin() || isDomainAdmin()) + return true; + else + return false; + }, + label: 'All' + }, mine: { label: 'Mine' }, featured: { label: 'Featured' }, community: { label: 'Community' }