'A decorator applied to protected web handlers.'

def SecurityCheck(self, func, request, *args, **kwargs):

    request.user = self.username
    request.token = access_control.ACLToken(username='Testing', reason='Just    a    test')
    return func(request, *args, **kwargs)
