Example #1
0
	def checkAccess(self):
		session_id = request.cookies.get('session-id')
		session_id = '' if session_id == None else session_id
		user = config.checkSession(session_id)
		# get the cookies and set up a user dictionary

		if session_id == '' or user == False:
			return False
		# invalid user, return an empty array

		return True
Example #2
0
    def checkAccess(self):
        session_id = request.cookies.get('session-id')
        session_id = '' if session_id == None else session_id
        user = config.checkSession(session_id)
        # get the cookies and set up a user dictionary

        if session_id == '' or user == False:
            return False
        # invalid user, return an empty array

        return True