Merge pull request #2604 from nabinhait/fix1

Fixes
This commit is contained in:
Nabin Hait 2015-01-19 11:10:39 +05:30
commit b434464b1c

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=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":