def get_current_user():
    req = get_current_request()

    if req:
        return getattr(req, 'user', None)
Get a reference to the current user. This is a shortcut
dataset/ETHPy150Open scieloorg/scielo-manager/scielomanager/scielomanager/utils/middlewares/threadlocal.py/get_current_user