Commit 5ff4cb4f by Rafael Monnerat

product/SlapOS: Fix up getTransactionalVariable

1 parent 77f2f44f
......@@ -253,9 +253,10 @@ class SlapOSShadowAuthenticationPlugin(BasePlugin):
]
# END OF CUSTOM CODE
if getTransactionalVariable()["transactional_user"] is not None:
tv = getTransactionalVariable()
person = getTransactionalVariable()["transactional_user"]
person = tv.get("transactional_user", None)
if person is not None:
erp5_login = person.objectValues("ERP5 Login")[0]
if (id is not None and person.getUserId() == id[0]):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!