# Moderators can see the "show associated accounts" button but can't use it

**URL:** https://meta.discourse.org/t/moderators-can-see-the-show-associated-accounts-button-but-cant-use-it/108772
**Category:** Bug
**Created:** [10 februari 2019 om 05:34 UTC](https://meta.discourse.org/t/moderators-can-see-the-show-associated-accounts-button-but-cant-use-it/108772 "2019-02-10T05:34:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)
#### Post date: [10 februari 2019 om 05:34 UTC](https://meta.discourse.org/t/moderators-can-see-the-show-associated-accounts-button-but-cant-use-it/108772/1 "2019-02-10T05:34:08Z")

</div>

It seems like moderators can see the “show email”/“show associated accounts” button in user preferences of other users but can’t use it. Returning an error saying it’s forbidden(Error: 403) in the console. Here’s a screenshot:

 ![41%20PM](https://global.discourse-cdn.com/meta/original/3X/4/8/481a360a2e0af2ebac6f900cea3841f00ae9e9cb.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [11 februari 2019 om 00:50 UTC](https://meta.discourse.org/t/moderators-can-see-the-show-associated-accounts-button-but-cant-use-it/108772/3 "2019-02-11T00:50:08Z")

</div>

My guess here is that this is only being half checked:

> <https://github.com/discourse/discourse/blob/84a10f8212ba4c5ea6e5923b6dba4d0f0e9c44c5/lib/guardian/user_guardian.rb#L69-L71>

So, if “show\_email\_on\_profile” is set to false, moderators should not see the button. @vinothkannans can sort it out.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [26 februari 2019 om 12:47 UTC](https://meta.discourse.org/t/moderators-can-see-the-show-associated-accounts-button-but-cant-use-it/108772/4 "2019-02-26T12:47:07Z")

</div>

This is fixed now as per the commit

[https://github.com/discourse/discourse/commit/ed0120171c950924413234ff54d56bf763d7cdda](https://github.com/discourse/discourse/commit/ed0120171c950924413234ff54d56bf763d7cdda)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [16 maart 2019 om 22:00 UTC](https://meta.discourse.org/t/moderators-can-see-the-show-associated-accounts-button-but-cant-use-it/108772/5 "2019-03-16T22:00:10Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
