debian-mirror-gitlab/app/services/boards/lists/update_service.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
433 B
Ruby
Raw Normal View History

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
2021-06-08 01:23:25 +05:30
Boards::Lists::UpdateService.prepend_mod_with('Boards::Lists::UpdateService')