debian-mirror-gitlab/app/policies/project_hook_policy.rb
2023-05-27 22:25:52 +05:30

9 lines
184 B
Ruby

# frozen_string_literal: true
class ProjectHookPolicy < ::BasePolicy
delegate { @subject.project }
rule { can?(:admin_project) }.policy do
enable :destroy_web_hook
end
end