GitLab wurde aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Vielen Dank für Ihre Geduld.

Commit 22b8c0b7 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Check if user can update the issue before moving it betweens lists

parent 115fca13
......@@ -9,6 +9,7 @@ def initialize(project, user, params = {})
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?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment