chore: Drop unreachable code
This commit is contained in:
parent
feea2f3c44
commit
bd6fcddd04
2 changed files with 2 additions and 5 deletions
|
|
@ -171,14 +171,11 @@ def get_address_list(doctype, txt, filters, limit_start, limit_page_length = 20,
|
|||
def has_website_permission(doc, ptype, user, verbose=False):
|
||||
"""Returns true if there is a related lead or contact related to this document"""
|
||||
contact_name = frappe.db.get_value("Contact", {"email_id": frappe.session.user})
|
||||
|
||||
if contact_name:
|
||||
contact = frappe.get_doc('Contact', contact_name)
|
||||
return contact.has_common_link(doc)
|
||||
|
||||
lead_name = frappe.db.get_value("Lead", {"email_id": frappe.session.user})
|
||||
if lead_name:
|
||||
return doc.has_link('Lead', lead_name)
|
||||
|
||||
return False
|
||||
|
||||
def get_address_templates(address):
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ def get_path(*path, **kwargs):
|
|||
base = frappe.local.site_path
|
||||
return os.path.join(base, *path)
|
||||
|
||||
def get_site_base_path(sites_dir=None, hostname=None):
|
||||
def get_site_base_path():
|
||||
return frappe.local.site_path
|
||||
|
||||
def get_site_path(*path):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue