debian-mirror-gitlab/app/services/boards/lists/update_service.rb
2021-04-29 21:17:54 +05:30

17 lines
434 B
Ruby

# 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')