fix: issue with current account not being present for some user
This commit is contained in:
parent
a98bffbe2b
commit
6c07ab8bb6
1 changed files with 1 additions and 2 deletions
|
@ -4,8 +4,7 @@ class TextSearch
|
||||||
DEFAULT_STATUS = 'open'.freeze
|
DEFAULT_STATUS = 'open'.freeze
|
||||||
|
|
||||||
def initialize(current_user, params)
|
def initialize(current_user, params)
|
||||||
@current_user = current_user
|
@current_account = current_user.account || Current.account
|
||||||
@current_account = current_user.account
|
|
||||||
@params = params
|
@params = params
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue