Added the option management, and moved the configuration of the default currency, the default account for the income and expenses log, and the recurring expenses and incomes to the options.

This commit is contained in:
2023-03-22 15:34:28 +08:00
parent fa3cdace7f
commit 761d5a5824
24 changed files with 1919 additions and 79 deletions

View File

@ -50,6 +50,15 @@ class UserUtilityInterface(t.Generic[T], ABC):
data, or False otherwise.
"""
@abstractmethod
def can_admin(self) -> bool:
"""Returns whether the currently logged-in user can administrate the
accounting settings.
:return: True if the currently logged-in user can administrate the
accounting settings, or False otherwise.
"""
@property
@abstractmethod
def cls(self) -> t.Type[T]: