Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_hook_policy.rb « policies « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c177fabb1ba2834012bcd5b9f5fb12631fe3ae16 (plain)
1
2
3
4
5
6
7
8
9
10
# 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