Sha256: f7a4cdd2e8f2030bacaa0a08c9878cd16380fa7f8a5fd4ca64b802dd43e4ad28
Contents?: true
Size: 369 Bytes
Versions: 4
Compression:
Stored size: 369 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
4 entries across 4 versions & 1 rubygems