Fix autocomplete_maintainers for local admins. Refs #620

This commit is contained in:
Pavel Chipiga 2012-09-06 13:31:31 +03:00
parent ec32cf7fa0
commit a2d87c9228
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class Ability
can [:read, :archive], Project, :owner_type => 'Group', :owner_id => user.group_ids
can([:read, :membered], Project, read_relations_for('projects')) {|project| local_reader? project}
can(:write, Project) {|project| local_writer? project} # for grack
can([:update, :sections, :manage_collaborators], Project) {|project| local_admin? project}
can([:update, :sections, :manage_collaborators, :autocomplete_maintainers], Project) {|project| local_admin? project}
can(:fork, Project) {|project| can? :read, project}
can(:fork, Project) {|project| project.owner_type == 'Group' and can? :update, project.owner}
can(:destroy, Project) {|project| owner? project}