diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-14 08:30:37 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-17 07:39:16 +0100 |
commit | a91101b19a44d98005dd21b06d8509abcd82ddfc (patch) | |
tree | 10c1a04d398441d6642db02f181abe166a512f81 /app/services/issues | |
parent | 310b417b0f2336e5e7a9b44da2fabf5d4abb0cb4 (diff) | |
download | gitlab-ce-a91101b19a44d98005dd21b06d8509abcd82ddfc.tar.gz |
Make it possible to move issue if user is a reporter
Discussed it here:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2831#note_4190228
Diffstat (limited to 'app/services/issues')
-rw-r--r-- | app/services/issues/move_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/issues/move_service.rb b/app/services/issues/move_service.rb index d1bded5c99f..d9f4692d377 100644 --- a/app/services/issues/move_service.rb +++ b/app/services/issues/move_service.rb @@ -39,8 +39,8 @@ module Issues private def can_move? - can?(@current_user, :move_issue, @project_old) && - can?(@current_user, :move_issue, @project_new) + can?(@current_user, :admin_issue, @project_old) && + can?(@current_user, :admin_issue, @project_new) end def open_new_issue |