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.

11 lines
199 B
Ruby
Raw Normal View History

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