def allowed_to_promote?(emendation)
      return unless emendation.amendment.rejected? && emendation.created_by?(current_user)
      return if promoted?(emendation)

      true
    end
def allowed_to_promote?(emendation)
      return unless emendation.amendment.rejected? && emendation.created_by?(current_user)
      return if promoted?(emendation)

      true
    end
def allowed_to_promote? ( emendation ) return unless emendation . amendment . rejected? && emendation . created_by? ( current_user ) return if promoted? ( emendation ) true end
Checks if the user can promote the emendation
Checks if the user can promote the emendation