diff options
author | Mark Chao <mchao@gitlab.com> | 2019-03-11 16:52:40 +0800 |
---|---|---|
committer | Mark Chao <mchao@gitlab.com> | 2019-03-21 16:24:30 +0800 |
commit | 727ec95528c3b928992406e570427728e7186fd4 (patch) | |
tree | fadcff38f9d893f959f898bca5dc451594667d32 /app/controllers/projects/issues_controller.rb | |
parent | 6a0702fe9382c2b3c4a72421054d46821a95c781 (diff) | |
download | gitlab-ce-727ec95528c3b928992406e570427728e7186fd4.tar.gz |
Hide related branches when user does not have permission
Guest user of a project should not see branches
Diffstat (limited to 'app/controllers/projects/issues_controller.rb')
-rw-r--r-- | app/controllers/projects/issues_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index b9d02a62fc3..2cb40697b5c 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -39,6 +39,7 @@ class Projects::IssuesController < Projects::ApplicationController before_action :authorize_create_merge_request_from!, only: [:create_merge_request] before_action :authorize_import_issues!, only: [:import_csv] + before_action :authorize_download_code!, only: [:related_branches] before_action :set_suggested_issues_feature_flags, only: [:new] |