mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Don't display system badges in the admin badges interface.
This commit is contained in:
parent
215e42053a
commit
8fe8e66280
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user