Skip to content

Commit

Permalink
perm not perms
Browse files Browse the repository at this point in the history
  • Loading branch information
pvyParts authored May 25, 2024
1 parent d8fd764 commit c248ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authstats/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_report_for_corp(request, report_id: int, corp_id: int):
try:
report = ReportResults.objects.get(
corporation__corporation_id=corp_id, report_id=report_id)
if report.report.restricted and not request.user.has_perms("authstats.restricted_reports"):
if report.report.restricted and not request.user.has_perm("authstats.restricted_reports"):
return 403, f"Access Denied to get_report_for_corp {report_id}/{corp_id} for {request.user}"
if report.last_update < timezone.now() - timedelta(hours=1):
run_report_for_corp.delay(corp_id, report_id)
Expand Down

0 comments on commit c248ab0

Please sign in to comment.