def METHOD_NAME(user):
    """
    Returns true if the specified user is allowed to preview themes.
    """
    if not user or user.is_anonymous:
        return False
    # In development mode, all users can preview themes
    if settings.DEBUG:
        return True
    # Otherwise, only global staff can preview themes
    return GlobalStaff().has_user(user)