updated Ability model

This commit is contained in:
Vokhmin Alexey V 2012-10-09 17:50:09 +04:00
parent d83243a3a3
commit 1e2d41b183
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ class Ability
can [:publish_build, :status_build, :pre_build, :post_build, :circle_build, :new_bbdt], BuildList
# Platforms block
can [:show, :members, :advisories, :platforms_for_build], Platform, :visibility => 'open'
can [:show, :members, :advisories], Platform, :visibility => 'open'
can :platforms_for_build, Platform, :visibility => 'open', :name => 'main'
can [:read, :projects_list], Repository, :platform => {:visibility => 'open'}
can :read, Product, :platform => {:visibility => 'open'}