[issue #27] Fixed typo in ability.rb
This commit is contained in:
parent
0c3b62b235
commit
194aabdbc3
|
@ -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|
|
||||||
|
|
Loading…
Reference in New Issue