Added ability for system user for add_repo_lock_file/remove_repo_lock_file
This commit is contained in:
parent
fbc1bf79bb
commit
f30feb1153
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue