Commit 9d74853a authored by Romain Courteaud's avatar Romain Courteaud

Restore monitoring on access for computer.

Most of the time, they have no status to report.
parent d9ef537c
......@@ -282,6 +282,8 @@ class SlapTool(BaseTool):
Reuses slap library for easy marshalling.
"""
user = self.getPortalObject().portal_membership.getAuthenticatedMember().getUserName()
if str(user) == computer_id:
self._logAccess(user, user, '#access %s' % computer_id)
result = self._getComputerInformation(computer_id, user)
if self.REQUEST.response.getStatus() == 200:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment