mirror of
https://github.com/sartography/uva-covid19-testing-communicator.git
synced 2025-02-23 12:28:26 +00:00
fix a stupid bug that verifies users have permission to see the api.
This commit is contained in:
parent
b89d2729fa
commit
e63656d9f3
@ -88,7 +88,7 @@ def superuser(f):
|
||||
from communicator.services.user_service import UserService
|
||||
if not UserService().is_valid_user():
|
||||
flash("You do not have permission to view that page", "warning")
|
||||
logging.info("Permission Denied to user " + UserService.get_user_info())
|
||||
logging.info("Permission Denied to user " + UserService().get_user_info())
|
||||
abort(404)
|
||||
return f(*args, **kwargs)
|
||||
return decorated_function
|
||||
|
Loading…
x
Reference in New Issue
Block a user