Commit 9a44c9a6 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Just check the value, simple and stupid

Feedback:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1942#note_31511130
parent eaa4bfa7
......@@ -128,13 +128,10 @@ module API
authorize! :admin_group, group
# EE
if params[:shared_runners_minutes_limit]
group.shared_runners_minutes_limit =
params[:shared_runners_minutes_limit].to_i
if group.shared_runners_minutes_limit_changed?
authenticated_as_admin!
end
if params[:shared_runners_minutes_limit].present? &&
group.shared_runners_minutes_limit.to_i !=
params[:shared_runners_minutes_limit].to_i
authenticated_as_admin!
end
if ::Groups::UpdateService.new(group, current_user, declared_params(include_missing: false)).execute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment