From 66ebb206b09f83288ee6acbd6d11b2963ae43c9b Mon Sep 17 00:00:00 2001 From: Christiaan Van den Poel Date: Mon, 8 Jan 2018 09:06:25 +0000 Subject: disables the shortcut to the issue boards when issues are disabled --- app/controllers/projects/application_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/controllers/projects/application_controller.rb') diff --git a/app/controllers/projects/application_controller.rb b/app/controllers/projects/application_controller.rb index 9e79852e378..6025a40348b 100644 --- a/app/controllers/projects/application_controller.rb +++ b/app/controllers/projects/application_controller.rb @@ -86,4 +86,8 @@ class Projects::ApplicationController < ApplicationController def require_pages_enabled! not_found unless @project.pages_available? end + + def check_issues_available! + return render_404 unless @project.feature_available?(:issues, current_user) + end end -- cgit v1.2.1