Show More
@@ -49,9 +49,13 b' class OpsView(BaseAppView):' | |||
|
49 | 49 | 'instance': self.request.registry.settings.get('instance_id'), |
|
50 | 50 | } |
|
51 | 51 | if getattr(self.request, 'user'): |
|
52 | caller_name = 'anonymous' | |
|
53 | if self.request.user.user_id: | |
|
54 | caller_name = self.request.user.username | |
|
55 | ||
|
52 | 56 | data.update({ |
|
53 | 57 | 'caller_ip': self.request.user.ip_addr, |
|
54 |
'caller_name': |
|
|
58 | 'caller_name': caller_name, | |
|
55 | 59 | }) |
|
56 | 60 | return {'ok': data} |
|
57 | 61 |
General Comments 0
You need to be logged in to leave comments.
Login now