debian-mirror-gitlab/app/services/boards/lists/update_service.rb
2021-06-08 01:23:25 +05:30

17 lines
433 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_mod_with('Boards::Lists::UpdateService')