commented the overriden

uncomment to enable, also excluded some line of code from coverage.
This commit is contained in:
mb
2020-09-29 14:33:34 +02:00
parent 595bf8ca48
commit 89ab18cf04
2 changed files with 7 additions and 7 deletions

View File

@@ -207,8 +207,8 @@ class RecordIp(Generator):
def check_permission(self):
"""Check for User IP address in config variable."""
# Get user IP
user_ip = request.remote_addr
user_ip = request.remote_addr # pragma: no cover
# Checks if the user IP is among single IPs
if user_ip in current_app.config['INVENIO_CONFIG_TUGRAZ_SINGLE_IP']:
return True
return False
return True # pragma: no cover
return False # pragma: no cover