Check if user can update the issue before moving it betweens lists
This commit is contained in:
parent
115fca13c3
commit
22b8c0b7ae
1 changed files with 1 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue