Skip to content

Commit d7e8816

Browse files
committed
add empty line after guard clause to ApplicationController
git-svn-id: http://svn.redmine.org/redmine/trunk@20046 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 5e8af45 commit d7e8816

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/controllers/application_controller.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def logout_user
194194
def check_if_login_required
195195
# no check needed if user is already logged in
196196
return true if User.current.logged?
197+
197198
require_login if Setting.login_required?
198199
end
199200

@@ -285,6 +286,7 @@ def require_login
285286

286287
def require_admin
287288
return unless require_login
289+
288290
if !User.current.admin?
289291
render_403
290292
return false
@@ -375,6 +377,7 @@ def find_issue
375377
# if the issue actually exists but requires authentication
376378
@issue = Issue.find(params[:id])
377379
raise Unauthorized unless @issue.visible?
380+
378381
@project = @issue.project
379382
rescue ActiveRecord::RecordNotFound
380383
render_404
@@ -391,6 +394,7 @@ def find_issues
391394
to_a
392395
raise ActiveRecord::RecordNotFound if @issues.empty?
393396
raise Unauthorized unless @issues.all?(&:visible?)
397+
394398
@projects = @issues.collect(&:project).compact.uniq
395399
@project = @projects.first if @projects.size == 1
396400
rescue ActiveRecord::RecordNotFound
@@ -491,6 +495,7 @@ def validate_back_url(back_url)
491495
if uri.send(component).present? && uri.send(component) != request.send(component)
492496
return false
493497
end
498+
494499
uri.send(:"#{component}=", nil)
495500
end
496501
# Always ignore basic user:password in the URL
@@ -575,6 +580,7 @@ def missing_template(exception)
575580
# but have no HTML representation for non admin users
576581
def require_admin_or_api_request
577582
return true if api_request?
583+
578584
if User.current.admin?
579585
true
580586
elsif User.current.logged?

0 commit comments

Comments
 (0)