Created
April 8, 2016 06:55
-
-
Save rmehta/ce2680b26e0ff14cf3b3c11d48bce2d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doc = frappe.get_doc(doctype, name) | |
if hasattr(doc, 'has_web_form_permission'): | |
if not doc.has_web_form_permission(): | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment