feat(dashboard): add administrator authentication
This commit is contained in:
@@ -13,6 +13,7 @@ if __package__ in (None, ""):
|
||||
st.set_page_config(page_title="Jarca Ledger", page_icon="💰", layout="wide")
|
||||
|
||||
from dashboard.common import clear_cache, get_db_path, get_transfer_review_items, inject_app_css, render_sidebar_nav # noqa: F401
|
||||
from dashboard.authentication import require_dashboard_authentication
|
||||
from dashboard.page_views.accounts import page_accounts
|
||||
from dashboard.page_views.assets import page_assets
|
||||
from dashboard.page_views.categories import page_categories
|
||||
@@ -25,6 +26,9 @@ from dashboard.page_views.transactions import page_transactions
|
||||
from dashboard.page_views.uncategorized import page_uncategorized
|
||||
|
||||
def main() -> None:
|
||||
if not require_dashboard_authentication():
|
||||
return
|
||||
|
||||
db_path = get_db_path()
|
||||
inject_app_css()
|
||||
pages = ["월정산", "요약", "자산/마감", "거래내역", "확인필요 큐", "미분류", "분류 규칙", "카테고리", "계좌", "Import"]
|
||||
|
||||
Reference in New Issue
Block a user