]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of Issue#visible_condition
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jul 2020 16:21:29 +0000 (16:21 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jul 2020 16:21:29 +0000 (16:21 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19886 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 05a497c001938198d39e8080d18c247b80788580..9986cb8bdcb9c8f5a63fc899e8ba900e05348760 100644 (file)
@@ -125,7 +125,7 @@ class Issue < ActiveRecord::Base
         if user.id && user.logged?
           case role.issues_visibility
           when 'all'
-              '1=1'
+            '1=1'
           when 'default'
             user_ids = [user.id] + user.groups.pluck(:id).compact
             "(#{table_name}.is_private = #{connection.quoted_false} OR #{table_name}.author_id = #{user.id} OR #{table_name}.assigned_to_id IN (#{user_ids.join(',')}))"
@@ -133,7 +133,7 @@ class Issue < ActiveRecord::Base
             user_ids = [user.id] + user.groups.pluck(:id).compact
             "(#{table_name}.author_id = #{user.id} OR #{table_name}.assigned_to_id IN (#{user_ids.join(',')}))"
           else
-              '1=0'
+            '1=0'
           end
         else
           "(#{table_name}.is_private = #{connection.quoted_false})"