mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
fix source indent of Issue#visible_condition
git-svn-id: http://svn.redmine.org/redmine/trunk@19886 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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})"
|
||||
|
||||
Reference in New Issue
Block a user