mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 17:26:30 +08:00
FIX: cannot show email for pending/inactive users
This commit is contained in:
parent
3dcccb5dee
commit
865194f409
2 changed files with 12 additions and 2 deletions
|
@ -94,7 +94,7 @@ class UsersController < ApplicationController
|
|||
end
|
||||
|
||||
def check_emails
|
||||
user = fetch_user_from_params
|
||||
user = fetch_user_from_params(include_inactive: true)
|
||||
guardian.ensure_can_check_emails!(user)
|
||||
|
||||
StaffActionLogger.new(current_user).log_check_email(user, context: params[:context])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue