2019-12-04 20:38:33 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Boards
|
|
|
|
module Lists
|
2021-04-29 21:17:54 +05:30
|
|
|
class UpdateService < Boards::Lists::BaseUpdateService
|
2019-12-04 20:38:33 +05:30
|
|
|
def can_read?(list)
|
2021-04-17 20:07:23 +05:30
|
|
|
Ability.allowed?(current_user, :read_issue_board_list, parent)
|
2019-12-04 20:38:33 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def can_admin?(list)
|
2021-04-17 20:07:23 +05:30
|
|
|
Ability.allowed?(current_user, :admin_issue_board_list, parent)
|
2019-12-04 20:38:33 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-12-21 20:55:43 +05:30
|
|
|
|
|
|
|
Boards::Lists::UpdateService.prepend_if_ee('EE::Boards::Lists::UpdateService')
|