# Can't seem to approve users?

**URL:** https://meta.discourse.org/t/cant-seem-to-approve-users/150213
**Category:** Support
**Created:** [May 3, 2020, 12:10am UTC](https://meta.discourse.org/t/cant-seem-to-approve-users/150213 "2020-05-03T00:10:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![canyon289](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canyon289/32/156918_2.png) [@canyon289](https://meta.discourse.org/u/canyon289)
#### Post date: [May 3, 2020, 12:10am UTC](https://meta.discourse.org/t/cant-seem-to-approve-users/150213/1 "2020-05-03T00:10:28Z")

</div>

Hi,  
I’m looking to bulk approve users, but am running into issues even approving one user through the UI. The button looks “greyed out” and when I press approve I get an internal server error.

I’m on version 2.5.0.beta3, commit hash 0e4db91870

Inspecting the logs I get

```plaintext
Reviewable::InvalidAction (Can't peform `approve_user` on ReviewableUser) /var/www/discourse/app/models/reviewable.rb:346:in `perform' 

```

While the log message is clear I’m not sure what the correct user action is for me to approve this user.

Here’s what I get in the firefox console

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/d/9d88b30224512f47e0fdff28d05a9c22d66891f7.png)

Here’s what my UI looks like

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/9/e9c37dcccac768406cb71580200790dfb967f04b.png)

Once this is resolved I would like to bulk approve users in a manner that they all get the associated emails.  
If I do a bulk update as shown below (and in this thread [Bulk deleting / mass modifying users](https://meta.discourse.org/t/bulk-deleting-mass-modifying-users/64362)) will that ensure they get emails?

If so what would the equivalent command be? (Similar to the one below)

```plaintext
User.joins(:user_stat).where("user_stats.post_count = 0 AND user_stats.topic_count = 0").destroy_all

```

Thank you in advance for any help!

---

<div class="post-metadata">

### Author: ![canyon289](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canyon289/32/156918_2.png) [@canyon289](https://meta.discourse.org/u/canyon289)
#### Post date: [May 3, 2020, 2:08pm UTC](https://meta.discourse.org/t/cant-seem-to-approve-users/150213/2 "2020-05-03T14:08:37Z")

</div>

Continued doing research and I found this thread. However I don’t have anything in my review queue, and the user seems to be activated already

> [@New user approval broken in 2.3 beta 7?](https://meta.discourse.org/t/new-user-approval-broken-in-2-3-beta-7/113736):
>
> Dear all, I’m trying to approve a new user in Discourse 2.3 beta 7 (v2.3.0.beta7 +3) but clicking on the “Approve” button in the user’s page has no effect. Looking into the logs, I can see an error 500 coming from the server, though. See below. Message (18 copies reported) Reviewable::InvalidAction (Can't peform `approve` on ReviewableUser) /var/www/discourse/app/models/reviewable.rb:208:in `perform' Backtrace /var/www/discourse/app/models/reviewable.rb:208:in `perform' /var/www/discourse…

---

<div class="post-metadata">

### Author: ![canyon289](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canyon289/32/156918_2.png) [@canyon289](https://meta.discourse.org/u/canyon289)
#### Post date: [May 3, 2020, 2:12pm UTC](https://meta.discourse.org/t/cant-seem-to-approve-users/150213/3 "2020-05-03T14:12:37Z")

</div>

Another update, if I deactivate the user, then click activate, I can then approve the user. Why is this?

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/3/f39a06cef8e5a4d3e9c9963e7c4c66ca47917e76.png)

---

<div class="post-metadata">

### Author: ![canyon289](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canyon289/32/156918_2.png) [@canyon289](https://meta.discourse.org/u/canyon289)
#### Post date: [May 3, 2020, 11:45pm UTC](https://meta.discourse.org/t/cant-seem-to-approve-users/150213/4 "2020-05-03T23:45:07Z")

</div>

Last update. In short I had to deactivate each user, activate each user, then approve. I imported from vbulletin 3 so not sure if I put my discourse instance in a bad state.

I wrote a script that hits the api in a loop over all users to do so. It’s running right now but will post here when its done.

---

<div class="post-metadata">

### Author: ![Julien\_J](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/julien_j/32/188145_2.png) [@Julien\_J](https://meta.discourse.org/u/Julien_J)
#### Post date: [July 29, 2020, 12:55pm UTC](https://meta.discourse.org/t/cant-seem-to-approve-users/150213/5 "2020-07-29T12:55:22Z")

</div>

Hi,

Do you have some news about it ?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [December 2, 2020, 1:10pm UTC](https://meta.discourse.org/t/cant-seem-to-approve-users/150213/6 "2020-12-02T13:10:39Z")

</div>

Fixed in

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

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [December 2, 2020, 1:10pm UTC](https://meta.discourse.org/t/cant-seem-to-approve-users/150213/7 "2020-12-02T13:10:42Z")

</div>


