debian-mirror-gitlab/app/policies/project_hook_policy.rb
2023-06-09 08:11:10 +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