# Cannot access to trustLevel "name"

**URL:** https://meta.discourse.org/t/cannot-access-to-trustlevel-name/85541
**Category:** Development
**Created:** [April 17, 2018, 2:34pm UTC](https://meta.discourse.org/t/cannot-access-to-trustlevel-name/85541 "2018-04-17T14:34:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![duranmla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/duranmla/32/109295_2.png) [@duranmla](https://meta.discourse.org/u/duranmla)
#### Post date: [April 17, 2018, 2:34pm UTC](https://meta.discourse.org/t/cannot-access-to-trustlevel-name/85541/1 "2018-04-17T14:34:21Z")

</div>

Hi all,

Basically I am trying to accomplish a sort of flair around all the avatars within my platform which by now it is not a problem it is somewhere similar to the work done at: [GitHub - tshenry/discourse-trust-level-avatar-flair · GitHub](https://github.com/tshenry/discourse-trust-level-avatar-flair) but they only attach the flair to a single widget within the Discourse app and as expected, there are many others that won’t render that flair.

**My real problem is that I have the user object but the `trustLevel` doesn’t provide me useful info** , I have seen within templates statements like: `trustLevel.name` and I believed that with the user object I was able to do that but instead what I got a key that has “undefined” value:

![03](https://global.discourse-cdn.com/meta/original/3X/a/0/a02dc4feae8f7f158e9f70a405cf0477d8e464f7.png)

```plaintext
  @computed("trust_level")
  trustLevel(trustLevel) {
    return Discourse.Site.currentProp('trustLevels').findBy('id', parseInt(trustLevel, 10));
  }

```

I am expecting that ^ method from user modal return something like:

```plaintext
Class {id: 1, name: "basic user", store: Class, __munge: ƒ,__ ember1523976819326: null}

```

_keep in mind the `testUser` is the same used below and return successfully:_

 ![04](https://global.discourse-cdn.com/meta/original/3X/b/5/b5cee25f216e65292609ec02abe1351b8e4d4b19.png)
