def can_upload_apps(self, email=None):
    """ Checks if the user can upload Google App Engine applications via the
    AppDashboard.

    Args:
      email: A str containing the e-mail address of the user that may be a cloud
        admin, or None (in which case, we use the e-mail address of the
        currently logged-in user).
    Returns:
      True if the user is authorized to upload Google App Engine apps, and False
      otherwise (including the case when no user is logged in).
    """
    if email is None:
      user = users.get_current_user()
      if not user:
        return False
      email = user.email()
    return self.get_user_capabilities(email) in 'upload_app'
dataset/ETHPy150Open AppScale/appscale/AppDashboard/lib/app_dashboard_helper.py/AppDashboardHelper.can_upload_apps/swapped operands of `in`