mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-06 00:48:46 -04:00
add debug for compliance #46
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from flask import abort, has_request_context, request
|
from flask import abort, current_app, has_request_context, request
|
||||||
from flask_login import current_user
|
from flask_login import current_user
|
||||||
from notifications_python_client import __version__
|
from notifications_python_client import __version__
|
||||||
from notifications_python_client.base import BaseAPIClient
|
from notifications_python_client.base import BaseAPIClient
|
||||||
@@ -79,6 +79,7 @@ class NotifyAdminAPIClient(BaseAPIClient):
|
|||||||
# we are not full signed in yet
|
# we are not full signed in yet
|
||||||
pass
|
pass
|
||||||
elif not current_user or not current_user.is_active:
|
elif not current_user or not current_user.is_active:
|
||||||
|
current_app.logger.error(f"Unauthorized URL #notify-compliance-46 {args}")
|
||||||
abort(403)
|
abort(403)
|
||||||
|
|
||||||
def post(self, *args, **kwargs):
|
def post(self, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user