witten
/
luminotes
Archived
1
0
Fork 0

For demo accounts, no longer doing automatic redirect to first notebook thing when you hit "/" without a referrer.

This commit is contained in:
Dan Helfman 2008-02-27 21:32:39 +00:00
parent 52f9de706d
commit 42de8979dc
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class Root( object ):
referer = cherrypy.request.headerMap.get( u"Referer" )
if not referer:
user = self.__database.load( User, user_id )
if user:
if user and user.username:
first_notebook = self.__database.select_one( Notebook, user.sql_load_notebooks( parents_only = True, undeleted_only = True ) )
if first_notebook:
return dict( redirect = u"%s/notebooks/%s" % ( https_url, first_notebook.object_id ) )