code: def application_detail(request, application_id, state=None, label=None):
      
      application = base.get_application(pk=application_id)
      state_machine = base.get_state_machine(application)
      return state_machine.process(request, application, state, label)
docs: A authenticated used is trying to access an application.