def get_permission_query_conditions(user):
    if (not user):
        user = frappe.session.user
    if (user == 'Administrator'):
        return ''
    return '(`tabNote`.public=1 or `tabNote`.owner="{user}")'.format(user=user)
def get_permission_query_conditions(user):
    if (not user):
        user = frappe.session.user
    if (user == 'Administrator'):
        return 
    return '(`tabNote`.public=1 or `tabNote`.owner="{user}")'.format(user=user)