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-0.15.4 | app/controllers/thredded/private_post_permalinks_controller.rb |