Skip to content

Commit

Permalink
improve docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
FuHsinyu committed Jun 13, 2024
1 parent 59e0c60 commit 019ec89
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions admin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@

@admin_bp.route("/")
def index() -> Response:
"""
Route to the admin page. It checks if the current user has admin
privileges and directs them accordingly.
:Returns:
Response: The Flask response object that renders the admin dashboard if
the user has admin access, or aborts with a 403 status code if they do not.
"""
"""Route to the admin page, if user has admin access"""
has_admin_access = api.call("admin_has_access", data={})["data"]
print(f"Admin access check from Portal: {has_admin_access}")

Expand Down

0 comments on commit 019ec89

Please sign in to comment.