summaryrefslogtreecommitdiff
path: root/app/controllers/projects/todos_controller.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-17 09:06:00 +0100
committerPhil Hughes <me@iamphill.com>2016-06-17 09:06:00 +0100
commitb56965c5bb6a92b7bf4a7158c5f9555b7c1a9e2b (patch)
tree61fbbb9b31b2f6df653350a69689d32d684c1cde /app/controllers/projects/todos_controller.rb
parent85fab13ebaf10982c0957daca0afd1ea145e64df (diff)
downloadgitlab-ce-b56965c5bb6a92b7bf4a7158c5f9555b7c1a9e2b.tar.gz
Correctly checks if user is logged in when adding todo
Diffstat (limited to 'app/controllers/projects/todos_controller.rb')
-rw-r--r--app/controllers/projects/todos_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/todos_controller.rb b/app/controllers/projects/todos_controller.rb
index f58f7f34574..0d6c2ce5a4c 100644
--- a/app/controllers/projects/todos_controller.rb
+++ b/app/controllers/projects/todos_controller.rb
@@ -1,5 +1,5 @@
class Projects::TodosController < Projects::ApplicationController
- before_action :authorize_read_issue!, only: [:create]
+ before_action :authenticate_user!, only: [:create]
def create
todo = TodoService.new.mark_todo(issuable, current_user)