diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-28 03:45:24 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 12:58:57 -0300 |
commit | 22b8c0b7ae5ca0c7ac04808bbdde1d914897fa8c (patch) | |
tree | a53aafe6bd657bcc90b1fd14eafe42c0280dd2ce /app | |
parent | 115fca13c3712c787f2a637e936cb1174483555a (diff) | |
download | gitlab-ce-22b8c0b7ae5ca0c7ac04808bbdde1d914897fa8c.tar.gz |
Check if user can update the issue before moving it betweens lists
Diffstat (limited to 'app')
-rw-r--r-- | app/services/boards/issues/move_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/boards/issues/move_service.rb b/app/services/boards/issues/move_service.rb index d893a52cf9b..7daa4d31efd 100644 --- a/app/services/boards/issues/move_service.rb +++ b/app/services/boards/issues/move_service.rb @@ -9,6 +9,7 @@ module Boards def execute return false unless issue.present? + return false unless user.can?(:update_issue, issue) update_service.execute(issue) reopen_service.execute(issue) if moving_from.done? |