blob: 642ed4d79ed3202cefa6a992b96806d6f265529b (
plain)
1
2
3
4
5
6
7
8
|
# frozen_string_literal: true
class GroupDeployKeyPolicy < BasePolicy
with_options scope: :subject, 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
|