Skip to content

Commit

Permalink
chore: fix authorize in service
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jan 7, 2025
1 parent 6e607a3 commit 8037c9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bc_obps/reporting/api/compliance_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from reporting.service.compliance_service import ComplianceService, ComplianceData
from reporting.schema.compliance_data import ComplianceDataSchemaOut
from .router import router
from common.permissions import authorize


@router.get(
Expand All @@ -15,7 +16,7 @@
tags=EMISSIONS_REPORT_TAGS,
description="""Retrieves the data for the compliance summary page from multiple data sources.""",
exclude_none=True,
# auth=authorize("approved_industry_user"),
auth=authorize("approved_industry_user"),
)
@handle_http_errors()
def get_compliance_summary_data(request: HttpRequest, report_version_id: int) -> Tuple[Literal[200], ComplianceData]:
Expand Down

0 comments on commit 8037c9e

Please sign in to comment.