put ':id' do
            if @section = current_site.sections.by_id_or_slug(params[:id]).first
              authorize @section, :update?
            else
              authorize Section, :create?