1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Fix for AC-694, we weren't saving the instance if using the cached user

This commit is contained in:
Matthew Jones 2013-11-20 00:27:02 -05:00
parent b73e792b23
commit d564d73622

View File

@ -33,6 +33,7 @@ class ActivityStreamMiddleware(object):
for instance in self.instances:
if self.cached_user is not None:
instance.user = self.cached_user
instance.save()
elif "current_user" in request.COOKIES and "id" in request.COOKIES["current_user"]:
userInfo = json.loads(urllib2.unquote(request.COOKIES['current_user']).decode('utf8'))
userActual = User.objects.get(id=int(userInfo['id']))