PlayWithMagic / PlayWithMagic.org

PlayWithMagic.org is a web application that catalogs magic tricks and helps magicians build shows.
http://playwithmagic.github.io/PlayWithMagic.org/
Apache License 2.0
2 stars 1 forks source link

Examine using Context.current() for passing and getting the current Session context. #190

Open pkarjala opened 9 years ago

pkarjala commented 9 years ago

Currently we are passing in a manual Secured.isLoggedIn(ctx()), Secured.getUserInfo(ctx()) on every Template load.

However, @marknelsonengineer has pointed out that there is a Singleton we can use called Secured.getUserInfo(Context.current()) to call this in any current class without passing in the context. Not sure if we'll be able to migrate to this or not, but we'll examine it as a future potential way to clean up the flow.