Просмотр исходного кода

handler logout fix for expired sessions

version-14
Rushabh Mehta 13 лет назад
Родитель
Сommit
01c49f43a3
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      py/webnotes/handler.py

+ 2
- 2
py/webnotes/handler.py Просмотреть файл

@@ -35,7 +35,7 @@ def runserverobj(arg=None):
import webnotes.widgets.form.run_method
webnotes.widgets.form.run_method.runserverobj()

@webnotes.whitelist()
@webnotes.whitelist(allow_guest=True)
def logout():
webnotes.login_manager.logout()

@@ -339,4 +339,4 @@ def compressBuf(buf):
zfile = gzip.GzipFile(mode = 'wb', fileobj = zbuf, compresslevel = 5)
zfile.write(buf)
zfile.close()
return zbuf.getvalue()
return zbuf.getvalue()

Загрузка…
Отмена
Сохранить