Fixed the documentation of the can_view and can_edit functions in the "accounting.utils.permission" module.
This commit is contained in:
parent
7aaeb32a3d
commit
855356084e
@ -66,7 +66,7 @@ data."""
|
|||||||
|
|
||||||
|
|
||||||
def can_view() -> bool:
|
def can_view() -> bool:
|
||||||
"""Returns whether the current user can view the account data.
|
"""Returns whether the current user can view the accounting data.
|
||||||
|
|
||||||
:return: True if the current user can view the accounting data, or False
|
:return: True if the current user can view the accounting data, or False
|
||||||
otherwise.
|
otherwise.
|
||||||
@ -75,7 +75,7 @@ def can_view() -> bool:
|
|||||||
|
|
||||||
|
|
||||||
def can_edit() -> bool:
|
def can_edit() -> bool:
|
||||||
"""Returns whether the current user can edit the account data.
|
"""Returns whether the current user can edit the accounting data.
|
||||||
|
|
||||||
The user has to log in.
|
The user has to log in.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user