[issue #279] Fixed permissions for personal platforms.

This commit is contained in:
George Vinogradov 2012-03-20 22:41:14 +04:00
parent f958c56a3e
commit cd42c912d8
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ class Ability
cannot :fork, Project, :owner_id => user.id, :owner_type => user.class.to_s
cannot :destroy, Issue
cannot [:members, :add_member, :remove_member, :remove_members], Platform, :platform_type => 'personal'
# cannot :read, Product, :platform => {:platform_type => 'personal'}
# cannot(:read, Product, read_relations_for('products', 'platforms')) {|product| product.platform.platform_type == 'personal'}
cannot [:create, :update, :destroy, :clone], Product, :platform => {:platform_type => 'personal'}