Temporary disable AutoBuild functions for users (not working at now)

This commit is contained in:
Vladimir Sharshov 2012-01-20 12:24:57 +04:00
parent 59c7faf5c1
commit bae56741d0
1 changed files with 3 additions and 2 deletions

View File

@ -46,8 +46,9 @@ class Ability
can(:fork, Project) {|project| can? :read, project}
can(:destroy, Project) {|project| owner? project}
can :create, AutoBuildList
can [:index, :destroy], AutoBuildList, :project_id => user.own_project_ids
# TODO: Turn on AAA when it will be updated
#can :create, AutoBuildList
#can [:index, :destroy], AutoBuildList, :project_id => user.own_project_ids
can :read, BuildList, :project => {:visibility => 'open'}
can :read, BuildList, :project => {:owner_type => 'User', :owner_id => user.id}