Renamed the can_view_accounting and can_edit_accounting template functions to accounting_can_view and accounting_can_edit, respectively.

This commit is contained in:
2023-02-07 17:15:05 +08:00
parent 708a434b5d
commit b1c7bc61c4
7 changed files with 16 additions and 16 deletions

View File

@ -104,5 +104,5 @@ def init_app(bp: Blueprint,
__can_view_func = can_view_func
if can_edit_func is not None:
__can_edit_func = can_edit_func
bp.add_app_template_global(can_view, "can_view_accounting")
bp.add_app_template_global(can_edit, "can_edit_accounting")
bp.add_app_template_global(can_view, "accounting_can_view")
bp.add_app_template_global(can_edit, "accounting_can_edit")