mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-03 14:19:41 +00:00
cleanup: rubocop: fix Layout/AlignArguments in app/models/principal.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18927 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1797f7abb0
commit
f554624614
@ -58,7 +58,8 @@ class Principal < ActiveRecord::Base
|
||||
active
|
||||
else
|
||||
# self and members of visible projects
|
||||
active.where("#{table_name}.id = ? OR #{table_name}.id IN (SELECT user_id FROM #{Member.table_name} WHERE project_id IN (?))",
|
||||
active.where(
|
||||
"#{table_name}.id = ? OR #{table_name}.id IN (SELECT user_id FROM #{Member.table_name} WHERE project_id IN (?))",
|
||||
user.id, user.visible_project_ids
|
||||
)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user