mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Require authentication on unpin endpoint
This commit is contained in:
parent
dd8f51160f
commit
6cbce2c157
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AnswerController < ApplicationController
|
class AnswerController < ApplicationController
|
||||||
before_action :authenticate_user!, only: :pin
|
before_action :authenticate_user!, only: %i[pin unpin]
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@answer = Answer.includes(comments: %i[user smiles], question: [:user], smiles: [:user]).find(params[:id])
|
@answer = Answer.includes(comments: %i[user smiles], question: [:user], smiles: [:user]).find(params[:id])
|
||||||
|
|
Loading…
Reference in a new issue