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
|