def can_manage_content(user, content):
    """
    Returns True if user is staff or instructor(owner).
    """
    if user.is_authenticated():
        owner = user == content.course.owner
        if user.is_staff or owner:
            return True
    return False