Merge pull request #362 from warpc/344-fix_products_monitoring

[refs #344] fixed ability for product and remove unused submenu
This commit is contained in:
Vladimir Sharshov 2012-03-30 10:56:52 -07:00
commit c6ba55c4f4
2 changed files with 2 additions and 1 deletions

View File

@ -88,6 +88,7 @@ class Ability
can(:create, ProductBuildList) {|pbl| can?(:update, pbl.product)}
can(:destroy, ProductBuildList) {|pbl| can?(:destroy, pbl.product)}
can(:read, ProductBuildList) {|pbl| can?(:read, pbl.product)}
can [:read, :create], PrivateUser, :platform => {:owner_type => 'User', :owner_id => user.id}
can [:read, :create], PrivateUser, :platform => {:owner_type => 'Group', :owner_id => user.group_ids}

View File

@ -16,4 +16,4 @@
= will_paginate @product_build_lists
= render 'product_build_lists/filter'
= render @product ? 'products/submenu' : 'build_lists/submenu'
= render 'build_lists/submenu'