summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-06 19:40:32 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-06 19:40:32 +0200
commit6c416aaac85fe16cd4900a686714627e9a0fcdbc (patch)
treeae08e26029513abe829ea4aea8984b9e7695cf51 /app/controllers/projects_controller.rb
parentda3e34c0fdc4de47e6192b8d75ce60be7d89b6d4 (diff)
downloadgitlab-ce-6c416aaac85fe16cd4900a686714627e9a0fcdbc.tar.gz
Issues, MR, Wall can be enabled/disabled per project
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 6530f47eeed..c9ffa5b72af 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -85,6 +85,8 @@ class ProjectsController < ApplicationController
#
def wall
+ return render_404 unless @project.wall_enabled
+
@note = Note.new
@notes = @project.common_notes.order("created_at DESC")
@notes = @notes.fresh.limit(20)