This commit is contained in:
Vokhmin Alexey V 2013-01-25 21:42:33 +04:00
parent eec4ec95a7
commit 0de439e9cb
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class Ability
can(:reject_publish, BuildList) do |build_list|
local_admin?(build_list.save_to_platform)
end
can([:cancel. :create_container], BuildList) {|build_list| can?(:write, build_list.project)}
can([:cancel, :create_container], BuildList) {|build_list| can?(:write, build_list.project)}
can [:read, :owned, :related, :members], Platform, :owner_type => 'User', :owner_id => user.id
can [:read, :related, :members], Platform, :owner_type => 'Group', :owner_id => user.group_ids