summaryrefslogtreecommitdiffstats
path: root/app/controllers/journals_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-18 14:22:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-18 14:22:18 +0000
commit488c192286ead874fcdfe04b6acf52e52e5cf9fc (patch)
tree1f72837b55d8da5ff89ee6cdbfc2d0a2ba514153 /app/controllers/journals_controller.rb
parent0e4525d76caf5d8228b01deb417f9ba67a831b93 (diff)
downloadredmine-488c192286ead874fcdfe04b6acf52e52e5cf9fc.tar.gz
redmine-488c192286ead874fcdfe04b6acf52e52e5cf9fc.zip
Removes "xxx and return" calls (#4446).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3185 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/journals_controller.rb')
-rw-r--r--app/controllers/journals_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb
index d479855f2..e9fe9099d 100644
--- a/app/controllers/journals_controller.rb
+++ b/app/controllers/journals_controller.rb
@@ -33,7 +33,7 @@ class JournalsController < ApplicationController
private
def find_journal
@journal = Journal.find(params[:id])
- render_403 and return false unless @journal.editable_by?(User.current)
+ (render_403; return false) unless @journal.editable_by?(User.current)
@project = @journal.journalized.project
rescue ActiveRecord::RecordNotFound
render_404