Allow user_action filtered by move_work_packages

pull/10674/head
Oliver Günther 2 years ago
parent ea0ef9b87f
commit 6cfe0d33fb
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 2
      app/views/work_packages/moves/new.html.erb
  2. 3
      config/initializers/permissions.rb

@ -60,7 +60,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field-container">
<%= angular_component_tag 'op-project-autocompleter',
inputs: {
# apiFilters: [['user_action', '=', ['work_packages/move']]],
apiFilters: [['user_action', '=', ['work_packages/move']]],
name: 'new_project_id',
},
id: 'new_project_id',

@ -155,7 +155,8 @@ OpenProject::AccessControl.map do |map|
wpt.permission :move_work_packages,
{ 'work_packages/moves': %i[new create] },
require: :loggedin,
dependencies: :view_work_packages
dependencies: :view_work_packages,
contract_actions: { work_packages: %i[move] }
wpt.permission :add_work_package_notes,
{

Loading…
Cancel
Save