Commit 2f57b7d5 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_credential: Fix external validator to check login availability in ERP5JS

parent 206271c8
......@@ -17,7 +17,7 @@ if value:
def getRealContext():
if not REQUEST:
return context
object_path = REQUEST.get("object_path")
object_path = REQUEST.get("object_path") or REQUEST.get("field_your_object_path")
return portal.restrictedTraverse(object_path)
#Allow user to create a request with it's username
......@@ -123,6 +123,7 @@
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment