mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
fix the build
This commit is contained in:
parent
c9c6b09f36
commit
825a01cec3
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ class ApplicationController < ActionController::Base
|
|||
username_lower = params[:username].downcase
|
||||
username_lower.gsub!(/\.json$/, '')
|
||||
find_opts = { username_lower: username_lower }
|
||||
find_opts[:active] = true unless opts[:include_inactive] || current_user.staff?
|
||||
find_opts[:active] = true unless opts[:include_inactive] || current_user.try(:staff?)
|
||||
User.find_by(find_opts)
|
||||
elsif params[:external_id]
|
||||
external_id = params[:external_id].gsub(/\.json$/, '')
|
||||
|
|
Loading…
Reference in a new issue