summaryrefslogtreecommitdiff
path: root/app/controllers/projects/application_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/application_controller.rb')
-rw-r--r--app/controllers/projects/application_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/application_controller.rb b/app/controllers/projects/application_controller.rb
index e0677ce3fbc..87484068eeb 100644
--- a/app/controllers/projects/application_controller.rb
+++ b/app/controllers/projects/application_controller.rb
@@ -9,7 +9,7 @@ class Projects::ApplicationController < ApplicationController
skip_before_action :authenticate_user!
before_action :project
before_action :repository
- layout 'project'
+ layout "project"
helper_method :repository, :can_collaborate_with_project?, :user_access
@@ -38,7 +38,7 @@ class Projects::ApplicationController < ApplicationController
def authorize_action!(action)
unless can?(current_user, action, project)
- return access_denied!
+ access_denied!
end
end
@@ -48,7 +48,7 @@ class Projects::ApplicationController < ApplicationController
def check_issuables_available!
render_404 unless project.feature_available?(:issues, current_user) ||
- project.feature_available?(:merge_requests, current_user)
+ project.feature_available?(:merge_requests, current_user)
end
def method_missing(method_sym, *arguments, &block)