Added ability for system user for add_repo_lock_file/remove_repo_lock_file

This commit is contained in:
Vokhmin Alexey V 2014-06-02 18:09:35 +04:00
parent fbc1bf79bb
commit f30feb1153
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class Ability
cannot(:cancel, MassBuild) {|mass_build| mass_build.stop_build} cannot(:cancel, MassBuild) {|mass_build| mass_build.stop_build}
if @user.system? if @user.system?
can :key_pair, Repository can %i(key_pair add_repo_lock_file remove_repo_lock_file), Repository
else else
cannot :key_pair, Repository cannot :key_pair, Repository
end end