Sha256: b81bbc6472f01590e04e43a4efa56bac163af9b4835be220ed2eaeb5fb10b144
Contents?: true
Size: 379 Bytes
Versions: 17
Compression:
Stored size: 379 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
17 entries across 17 versions & 2 rubygems