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

update_service.rb « lists « boards « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e1a6592cd967d1791fb222df5a32bd3e9dfb911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Boards
  module Lists
    class UpdateService < Boards::Lists::BaseUpdateService
      def can_read?(list)
        Ability.allowed?(current_user, :read_issue_board_list, parent)
      end

      def can_admin?(list)
        Ability.allowed?(current_user, :admin_issue_board_list, parent)
      end
    end
  end
end

Boards::Lists::UpdateService.prepend_if_ee('EE::Boards::Lists::UpdateService')