Skip to content
Snippets Groups Projects
Commit 1b5fcf4e authored by Douglas AC's avatar Douglas AC
Browse files

Applying policy system to the creation of questions.

parent 0d0a147c
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
class V1::QuestionsController < ApplicationController
before_action :set_question, only: [:show, :update, :destroy]
before_action :authorize!, only: [:update, :destroy]
before_action :authorize!, only: [:create, :update, :destroy]
# GET /questions
def index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment