gitlab-org--gitlab-foss/app/policies/group_deploy_keys_group_policy.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
297 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class GroupDeployKeysGroupPolicy < BasePolicy
with_options scope: :subject, score: 0
delegate { @subject.group }
condition(:user_is_group_owner) { @subject.group.has_owner?(@user) }
rule { user_is_group_owner }.enable :update_group_deploy_key_for_group
end