summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorSam Rose <sam@gitlab.com>2017-03-06 15:18:39 -0500
committerSam Rose <sam@gitlab.com>2017-03-20 10:43:54 -0400
commitaea78ded3408a7f68f226049389d52abe8bb087f (patch)
treebeac4ab6fbadbd5aca887d2d3a162ad4286324bd /app/controllers
parent9ed3db915026c6e0cd266a1c276386e3e96d2151 (diff)
downloadgitlab-ce-aea78ded3408a7f68f226049389d52abe8bb087f.tar.gz
Redirect to signin when New Issue for not logged in
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/issues_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb
index 1151555b8fa..549c192f218 100644
--- a/app/controllers/projects/issues_controller.rb
+++ b/app/controllers/projects/issues_controller.rb
@@ -6,6 +6,8 @@ class Projects::IssuesController < Projects::ApplicationController
include IssuableCollections
include SpammableActions
+ prepend_before_action :authenticate_user!, only: [:new]
+
before_action :redirect_to_external_issue_tracker, only: [:index, :new]
before_action :module_enabled
before_action :issue, only: [:edit, :update, :show, :referenced_merge_requests,