Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in solidus login users in dashboard #1454

Closed
sechix opened this issue Jul 25, 2018 · 1 comment
Closed

Error in solidus login users in dashboard #1454

sechix opened this issue Jul 25, 2018 · 1 comment

Comments

@sechix
Copy link
Contributor

sechix commented Jul 25, 2018

In dashboard of last master alchemy version I get this error,
image

I was researching and its due to '@online_users' is nil . I guess that because of I log with solidus and I have connecting login to solidus login I get the error.

  def index
    @last_edited_pages = Page.all_last_edited_from(current_alchemy_user)
    @all_locked_pages = Page.locked
    if Alchemy.user_class.respond_to?(:logged_in)
      @online_users = Alchemy.user_class.logged_in.to_a - [current_alchemy_user]
    end
    if current_alchemy_user.respond_to?(:sign_in_count) && current_alchemy_user.respond_to?(:last_sign_in_at)
      @last_sign_at = current_alchemy_user.last_sign_in_at
      @first_time = current_alchemy_user.sign_in_count == 1 && @last_sign_at.nil?
    end
    @sites = Site.all
  end
@tvdeyen
Copy link
Member

tvdeyen commented Sep 18, 2018

Fixed by #1469

@tvdeyen tvdeyen closed this as completed Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants