import cherrypy


def is_session_authenticated(*args, **kwargs):
    username = cherrypy.session.get('_cp_username')
    if username:
        return True
    else:
        return False

53260c02dfd9ab1c526de8242ab1a0a60407abd5
<mask token>

<mask token>


def is_session_authenticated(*args, **kwargs):
    username = cherrypy.session.get('_cp_username')
    if username:
        return True
    else:
        return False

import cherrypy


def is_session_authenticated(*args, **kwargs):
    username = cherrypy.session.get('_cp_username')
    if username:
        return True
    else:
        return False
