Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-05-19 01:57:14 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-05-19 01:57:14 +0300
commita7c823a5730fade9d8cc2c992c0f80cc12b1c0a7 (patch)
treed081264973aa7764359114c1de72b32d700bb63a /lib/gitlab/email/handler
parente7a6d17b2b9a3a1b1cae0733da46ddedfe2dc3b1 (diff)
Give ProjectNotFound when the project is not readable
Diffstat (limited to 'lib/gitlab/email/handler')
-rw-r--r--lib/gitlab/email/handler/create_issue.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/gitlab/email/handler/create_issue.rb b/lib/gitlab/email/handler/create_issue.rb
index 24f8f59900d..8829fbb0e49 100644
--- a/lib/gitlab/email/handler/create_issue.rb
+++ b/lib/gitlab/email/handler/create_issue.rb
@@ -10,9 +10,6 @@ module Gitlab
end
def execute
- # Must be private project without access
- raise ProjectNotFound unless author.can?(:read_project, project)
-
validate_permission!(:create_issue)
validate_authentication_token!