Skip to content

Commit

Permalink
fix(staff-access-for-download-metrics): fixes bug for metrics not bei…
Browse files Browse the repository at this point in the history
…ng available to staff
  • Loading branch information
kshitijrajsharma committed Aug 20, 2024
1 parent 61a3f21 commit 4fa882a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions API/download_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Reader imports
from src.app import DownloadMetrics

from .auth import admin_required
from .auth import staff_required

router = APIRouter(prefix="/metrics", tags=["Metrics"])

Expand All @@ -33,7 +33,7 @@ def get_stats(
description="Group by: day, month, or quarter",
regex=r"^(day|month|quarter|year)$",
),
_: bool = Depends(admin_required),
_: bool = Depends(staff_required),
):
"""
Retrieve download metrics summary statistics.
Expand Down

0 comments on commit 4fa882a

Please sign in to comment.