# Admin Button broken when user account gets moderator status

**URL:** https://meta.discourse.org/t/admin-button-broken-when-user-account-gets-moderator-status/275625
**Category:** UX
**Created:** [August 17, 2023, 11:53pm UTC](https://meta.discourse.org/t/admin-button-broken-when-user-account-gets-moderator-status/275625 "2023-08-17T23:53:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)
#### Post date: [August 17, 2023, 11:53pm UTC](https://meta.discourse.org/t/admin-button-broken-when-user-account-gets-moderator-status/275625/1 "2023-08-17T23:53:31Z")

</div>

![IMG_2399](https://global.discourse-cdn.com/meta/original/4X/a/7/a/a7a75e97b74561a4a1430dea8b086b20a0e76934.jpeg)  
Reproduction:

- User A gives User B moderator
- User B goes to their profile.
- They see a broken button, called en.admin.user.show\_admin\_profile.
- They click on it and they get brung to an error page.

---

<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: [August 18, 2023, 12:01am UTC](https://meta.discourse.org/t/admin-button-broken-when-user-account-gets-moderator-status/275625/2 "2023-08-18T00:01:15Z")

</div>

Thanks for reporting, we will get it sorted in the next few weeks.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [August 23, 2023, 8:14am UTC](https://meta.discourse.org/t/admin-button-broken-when-user-account-gets-moderator-status/275625/3 "2023-08-23T08:14:39Z")

</div>

![Screenshot 2023-08-23 at 4.08.44 PM](https://global.discourse-cdn.com/meta/original/4X/f/b/c/fbcf4e54674a4bece7d5387d411fe4af1f35667f.png)

I can’t see this happening on my User B (moderator). Is this a local setup? Can you confirm if this is still happening?

---

<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: [August 23, 2023, 8:39am UTC](https://meta.discourse.org/t/admin-button-broken-when-user-account-gets-moderator-status/275625/4 "2023-08-23T08:39:45Z")

</div>

Oh I think I know what this could be. The admin bundle only ships to admins.

I suspect the repro is:

- Account B navigates to home page
- Account A give B admin
- Account B navigates to a profile page **without reload**

The workaround is to reload the page.

I think this is certainly a bug, but quite low priority, we should force a full refresh on route transition in cases like this.

Does this align with your experience @twofoursixeight

---

<div class="post-metadata">

### Author: ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)
#### Post date: [August 23, 2023, 1:55pm UTC](https://meta.discourse.org/t/admin-button-broken-when-user-account-gets-moderator-status/275625/6 "2023-08-23T13:55:09Z")

</div>

This is what I think happened, User B got moderator status and went to a pre-loaded profile page.
