fix(user-permission): remove typo

This commit is contained in:
Mangesh-Khairnar 2019-05-07 18:39:18 +05:30 committed by GitHub
parent f49163b2e3
commit fbd58f2fe5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ class UserPermission(Document):
}, limit=1)
if overlap_exists:
ref_link = frappe.get_desk_link(self.doctype, overlap_exists[0].name)
frappe.throw(_("{0} has already assigned default vaue for {1}.".format(ref_link, self.allow)))
frappe.throw(_("{0} has already assigned default value for {1}.".format(ref_link, self.allow)))
@frappe.whitelist()
def get_user_permissions(user=None):
@ -236,4 +236,4 @@ def update_applicable(already_applied, to_apply, user, doctype, docname):
AND `applicable_for`=%s
AND `allow`=%s
AND `for_value`=%s
""",(user, applied, doctype, docname))
""",(user, applied, doctype, docname))