chore: improve docstring

This commit is contained in:
Sagar Vora 2022-08-09 12:00:16 +05:30
parent 7129d6128f
commit 7a19d65ea4

View file

@ -70,10 +70,11 @@ def has_permission(
:param ptype: Permission Type to check
:param doc: Check User Permissions for specified document.
:param verbose: DEPRECATED, will be removed in a future release.
:param user: User to check permission for. Defaults to session user.
:param user: User to check permission for. Defaults to current user.
:param raise_exception:
DOES NOT raise an exception.
If True, will print a message explaining why permission check failed.
If not False, will display a message using frappe.msgprint
which explains why the permission check failed.
:param parent_doctype:
Required when checking permission for a child DocType (unless doc is specified)