minor fix

This commit is contained in:
Nabin Hait 2015-01-19 11:06:33 +05:30
parent fe93ea56b6
commit aabeb38c15

View File

@ -27,7 +27,7 @@ def get_permission_query_conditions(user):
return """(`tabNote`.public=1 or `tabNote`.owner="{user}" or exists (
select name from `tabNote User`
where `tabNote User`.parent=`tabNote`.name
and `tabNote User`.user="{user}"))""".format(user=frappe,db.escape(user))
and `tabNote User`.user="{user}"))""".format(user=frappe.db.escape(user))
def has_permission(doc, ptype, user):
if doc.public == 1 or user == "Administrator":