зеркало из https://github.com/mozilla/FlightDeck.git
make sure user is authenticated before adding to exception META dict
This commit is contained in:
Родитель
b9901d3252
Коммит
dddaa74b86
|
@ -3,6 +3,6 @@ class GetUserInfoOnException(object):
|
|||
|
||||
def process_exception(self, request, exception):
|
||||
|
||||
if request.user:
|
||||
if request.user.is_authenticated():
|
||||
request.META['CURRENT_USER'] = "%s: %s" % \
|
||||
(request.user.pk, request.user.get_profile().nickname)
|
||||
|
|
Загрузка…
Ссылка в новой задаче