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:
commit
c6ba55c4f4
|
@ -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}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue