Issue #2075151 by pgillis: Calls clone_is_permitted($node->type) before we check permission so that we don't show link where it doesn't belong.