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

current_reader is set to an admin.. even when I use a private browser session #48

Open
robguthrie opened this issue Sep 18, 2012 · 0 comments

Comments

@robguthrie
Copy link

Hi

I am writing an extension that uses readers, and I call current_reader to detect if the client is logged in as a reader or not.

We are having a big problem, that people visit the site and are being given the admin session.

IE: When I visit the site with a private browser, and the page calls current_reader.. I get given the reader account of an admin user.

Looking into the code i see that current_reader is a method on ReaderPage, which calls Reader.current.

Reader.current is a cattr on the Reader model. This means that the whole system is going to have only one current reader, correct? If so.. isn't that a bug?

If not.. how do I lookup the current reader via authlogic?

Thanks for your time!

UPDATE:

Found out our problems were actually because of this:
http://rdoc.info/github/binarylogic/authlogic#Session_bugs__please_read_if_you_are_having_issues_with_logging_in___out_

Sorry for the run around.

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

1 participant