[issue #27] Fixed typo in ability.rb

This commit is contained in:
George Vinogradov 2011-12-16 02:09:05 +04:00
parent 0c3b62b235
commit 194aabdbc3
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Ability
# can :read, BuildList, :project => {:visibility => 'open'} do |build_list| # can :read, BuildList, :project => {:visibility => 'open'} do |build_list|
# build_list.project.public? # build_list.project.public?
# end # end
can :read, BuildList, ["build_lists.project_id IN (SELECT id FROM projects WHERE visibility = ?", 'open'] do |build_list| can :read, BuildList, ["build_lists.project_id IN (SELECT id FROM projects WHERE visibility = ?)", 'open'] do |build_list|
build_list.project.public? build_list.project.public?
end end
can :read, BuildList, build_lists_in_relations_with(:object_type => 'User', :object_id => user.id) do |build_list| can :read, BuildList, build_lists_in_relations_with(:object_type => 'User', :object_id => user.id) do |build_list|