Sha256: 72261aa256377cc0447c2cd698a51812fa84d073f8e764981ecfb6395139a281

Contents?: true

Size: 368 Bytes

Versions: 12

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true
module Thredded
  class PrivatePostPermalinksController < Thredded::ApplicationController
    before_action :thredded_require_login!
    def show
      private_post = PrivatePost.find(params[:id])
      authorize private_post, :read?
      redirect_to post_url(private_post, user: thredded_current_user), status: :found
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
thredded-0.12.1 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.12.0 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.11.1 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.11.0 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.10.1 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.10.0 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.9.4 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.9.3 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.9.2 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.9.1 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.8.4 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.8.2 app/controllers/thredded/private_post_permalinks_controller.rb