mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-23 00:45:28 +00:00
9 lines
244 B
Ruby
9 lines
244 B
Ruby
# frozen_string_literal: true
|
|
|
|
class GroupDeployKeyPolicy < BasePolicy
|
|
with_options score: 0
|
|
condition(:user_owns_group_deploy_key) { @subject.user_id == @user.id }
|
|
|
|
rule { user_owns_group_deploy_key }.enable :update_group_deploy_key
|
|
end
|