# Badge d'admin sur les publications & groupe de modérateur sur le profil

**URL:** <https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299>\
**Category:** Product Support\
**Created:** [Mars 19, 2016, 2:08 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299 "2016-03-19T14:08:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [Mars 19, 2016, 8:18 UTC](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299/10 "2016-03-19T20:18:36Z")

</div>

If I’m understanding, the problem isn’t that a Group is being shown, but _which_ group is being shown.  
eg. as an Admin you want that to be shown as the group rather than Moderator

I know the “double shield” thing has been fixed, and IMHO the Badges that display on the User Cards are well chosen from the larger set of Badges.

But I don’t know how it is decided which Group gets displayed on a Profile.  
Maybe by Id ?

I need to go out for a while but I’ll look into it a bit ASAP

EDIT  
I had a look around and the decision looks fairly hard-coded in AFAICT

templates/user/user.hbs has

```plaintext
{{#if model.displayGroups}}
  <dt>{{i18n 'groups.title' count=model.displayGroups.length}}</dt>
  <dd class='groups'>
    {{#each group in model.displayGroups}}
      <span>{{#link-to 'group' group class="group-link"}}{{group.name}}{{/link-to}}</span>
    {{/each}}
  </dd>
{{/if}}

```

and models/user.js.es6 has

```plaintext
@computed("groups.@each")
displayGroups() {
  const groups = this.get('groups');
  const filtered = groups.filter(group => {
    return !group.automatic || group.name === "moderators";
  });
  return filtered.length === 0 ? null : filtered;
},

```

All of the 9 default groups are “automatic true”, so moderators it is.

---

_[View the full topic](https://meta.discourse.org/t/admin-badge-on-posts-moderator-group-on-profile/41299)._
