Don't display system badges in the admin badges interface.

This commit is contained in:
Vikhyat Korrapati 2014-05-18 12:28:14 +05:30
parent 215e42053a
commit 8fe8e66280
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,11 @@
Discourse.AdminBadgesRoute = Discourse.Route.extend({
model: function() {
return Discourse.Badge.findAll();
return Discourse.Badge.findAll().then(function(badges) {
return badges.filter(function(badge) {
return badge.id >= 100;
});
});
},
setupController: function(controller, model) {