Просмотр исходного кода

chore: improve docstring

(cherry picked from commit 7a19d65ea4)
version-14
Sagar Vora 2 лет назад
committed by Mergify
Родитель
Сommit
bc59106841
1 измененных файлов: 3 добавлений и 2 удалений
  1. +3
    -2
      frappe/permissions.py

+ 3
- 2
frappe/permissions.py Просмотреть файл

@@ -78,10 +78,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)


Загрузка…
Отмена
Сохранить