feat: hide primary contact from profile

This commit is contained in:
Jannat Patel
2021-12-23 19:58:42 +05:30
parent b822428d52
commit 9f2cba49ee
3 changed files with 11 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ def get_context(context):
except:
context.template = "www/404.html"
return
context.hide_primary_contact = frappe.db.get_single_value("LMS Settings", "hide_primary_contact")
context.profile_tabs = get_profile_tabs(context.member)
def get_profile_tabs(user):