Commit 5ff4cb4f authored by Rafael Monnerat's avatar Rafael Monnerat

product/SlapOS: Fix up getTransactionalVariable

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]):
......
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