##// END OF EJS Templates
allow fully read-only mode if no password is set
MinRK -
Show More
@@ -77,7 +77,7 b' class AuthenticatedHandler(web.RequestHandler):'
77 if user_id is None:
77 if user_id is None:
78 # prevent extra Invalid cookie sig warnings:
78 # prevent extra Invalid cookie sig warnings:
79 self.clear_cookie('username')
79 self.clear_cookie('username')
80 if not self.application.password:
80 if not self.application.password and not self.application.ipython_app.read_only:
81 user_id = 'anonymous'
81 user_id = 'anonymous'
82 return user_id
82 return user_id
83
83
@@ -125,8 +125,7 b" flags['read-only'] = ("
125 individual notebooks, but not edit them, start kernels, or run
125 individual notebooks, but not edit them, start kernels, or run
126 code.
126 code.
127
127
128 This flag only makes sense in conjunction with setting a password,
128 If no password is set, the server will be entirely read-only.
129 via the ``NotebookApp.password`` configurable.
130 """
129 """
131 )
130 )
132
131
General Comments 0
You need to be logged in to leave comments. Login now