Skip to content

Commit

Permalink
minor: unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Oct 9, 2023
1 parent 4b1eeff commit 55312b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcloud/apigw/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def check_white_apps(request):


def check_allowed_limited_api_apps(request):
if getattr(request, "app", None) is None:
return False
app_code = getattr(request.app, settings.APIGW_MANAGER_APP_CODE_KEY)
return app_code in getattr(settings, "ALLOWED_LIMITED_API_APPS", [])

Expand Down

0 comments on commit 55312b6

Please sign in to comment.