mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-26 10:41:09 +00: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:
parent
9568e81d73
commit
26bf703530
@ -125,7 +125,7 @@ class Issue < ActiveRecord::Base
|
|||||||
if user.id && user.logged?
|
if user.id && user.logged?
|
||||||
case role.issues_visibility
|
case role.issues_visibility
|
||||||
when 'all'
|
when 'all'
|
||||||
'1=1'
|
'1=1'
|
||||||
when 'default'
|
when 'default'
|
||||||
user_ids = [user.id] + user.groups.pluck(:id).compact
|
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(',')}))"
|
"(#{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
|
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(',')}))"
|
"(#{table_name}.author_id = #{user.id} OR #{table_name}.assigned_to_id IN (#{user_ids.join(',')}))"
|
||||||
else
|
else
|
||||||
'1=0'
|
'1=0'
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
"(#{table_name}.is_private = #{connection.quoted_false})"
|
"(#{table_name}.is_private = #{connection.quoted_false})"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user