mirror of
https://github.com/sartography/uva-covid19-testing-communicator.git
synced 2025-02-24 04:48:05 +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
|
from communicator.services.user_service import UserService
|
||||||
if not UserService().is_valid_user():
|
if not UserService().is_valid_user():
|
||||||
flash("You do not have permission to view that page", "warning")
|
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)
|
abort(404)
|
||||||
return f(*args, **kwargs)
|
return f(*args, **kwargs)
|
||||||
return decorated_function
|
return decorated_function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user