def METHOD_NAME(self):
    """
    Verify that users have the correct access to preview themes.
    """
    # Anonymous users get redirected to the login page
    response = self.client.get(THEMING_ADMIN_URL)
    # Studio login redirects to LMS login
    expected_target_status_code = 200 if settings.ROOT_URLCONF == 'lms.urls' else 302
    self.assertRedirects(
        response,
        '{login_url}?next={url}'.format(
            login_url=settings.LOGIN_URL,
            url=THEMING_ADMIN_URL,
        ),
        target_status_code=expected_target_status_code
    )
    # Logged in non-global staff get a 404
    non_global_staff_user = UserFactory.create()
    self.client.login(username=non_global_staff_user.username, password=TEST_PASSWORD)
    response = self.client.get(THEMING_ADMIN_URL)
    assert response.status_code == 404
    # Global staff can access the page
    global_staff = GlobalStaffFactory()
    self.client.login(username=global_staff.username, password=TEST_PASSWORD)
    response = self.client.get(THEMING_ADMIN_URL)
    assert response.status_code == 200