Sha256: 5c0b0e7e7c64661ff14aa0a1b298cfb99ead8898a683fc64c3c5c9892f86db16

Contents?: true

Size: 380 Bytes

Versions: 21

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module Thredded
  class PrivatePostPermalinksController < Thredded::ApplicationController
    before_action :thredded_require_login!
    def show
      private_post = Thredded::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

21 entries across 21 versions & 1 rubygems

Version Path
thredded-1.1.0 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-1.0.1 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-1.0.0 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.16 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.15 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.14 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.13 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.12 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.11 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.10 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.9 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.8 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.7 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.6 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.5 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.4 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.3 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.1 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.16.0 app/controllers/thredded/private_post_permalinks_controller.rb
thredded-0.15.5 app/controllers/thredded/private_post_permalinks_controller.rb