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:
parent
b73e792b23
commit
d564d73622
@ -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']))
|
||||
|
Loading…
Reference in New Issue
Block a user