diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-17 09:06:00 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-17 09:06:00 +0100 |
commit | b56965c5bb6a92b7bf4a7158c5f9555b7c1a9e2b (patch) | |
tree | 61fbbb9b31b2f6df653350a69689d32d684c1cde /app | |
parent | 85fab13ebaf10982c0957daca0afd1ea145e64df (diff) | |
download | gitlab-ce-b56965c5bb6a92b7bf4a7158c5f9555b7c1a9e2b.tar.gz |
Correctly checks if user is logged in when adding todo
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/projects/todos_controller.rb | 2 |
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) |