diff options
author | Toon Claes <toon@gitlab.com> | 2018-09-27 10:46:26 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2018-09-27 11:07:26 +0200 |
commit | 5a376063af608eb2817cf272a3a18c999a277541 (patch) | |
tree | 216a97c0a3d8022d7ad90e409adecb67e79d11ba /app/services/quick_actions | |
parent | 62dde35069e430101e52359fbdba3fa14720195d (diff) | |
download | gitlab-ce-5a376063af608eb2817cf272a3a18c999a277541.tar.gz |
Allow /copy_metadata for new issues
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50181
Diffstat (limited to 'app/services/quick_actions')
-rw-r--r-- | app/services/quick_actions/interpret_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/quick_actions/interpret_service.rb b/app/services/quick_actions/interpret_service.rb index 02d68c3add3..dd733f646e7 100644 --- a/app/services/quick_actions/interpret_service.rb +++ b/app/services/quick_actions/interpret_service.rb @@ -290,8 +290,7 @@ module QuickActions end params '#issue | !merge_request' condition do - issuable.persisted? && - current_user.can?(:"update_#{issuable.to_ability_name}", issuable) + current_user.can?(:"update_#{issuable.to_ability_name}", issuable) end parse_params do |issuable_param| extract_references(issuable_param, :issue).first || |