debian-mirror-gitlab/app/policies/project_hook_policy.rb

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

10 lines
184 B
Ruby
Raw Permalink Normal View History

2022-08-27 11:52:29 +05:30
# frozen_string_literal: true
class ProjectHookPolicy < ::BasePolicy
2023-05-27 22:25:52 +05:30
delegate { @subject.project }
2022-08-27 11:52:29 +05:30
rule { can?(:admin_project) }.policy do
enable :destroy_web_hook
end
end