[refs #168] removed wrong ability

This commit is contained in:
Alexander Machehin 2012-02-07 17:31:00 +06:00
parent ff6c855234
commit 325667dde0
1 changed files with 0 additions and 1 deletions

View File

@ -67,7 +67,6 @@ class Ability
can :autocomplete_user_uname, Platform
# TODO delegate to platform?
can :read, Repository, :visibility => 'open'
can :read, Repository, :owner_type => 'User', :owner_id => user.id
can :read, Repository, :owner_type => 'Group', :owner_id => user.group_ids
can(:read, Repository, read_relations_for('repositories')) {|repository| local_reader? repository}