[refs #168] can read repos in the open platform
This commit is contained in:
parent
325667dde0
commit
c47db56270
|
@ -67,6 +67,7 @@ class Ability
|
|||
can :autocomplete_user_uname, Platform
|
||||
|
||||
# TODO delegate to platform?
|
||||
can :read, Repository, :platform => {: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}
|
||||
|
|
Loading…
Reference in New Issue