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: 5c24c0daa73de8bb638e76ca2ac2761dd9c0bdca (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_mod_with('Boards::Lists::UpdateService')