Add/remove issue watchers via the REST API (#6727).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11290 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
f2fd78f7b8
commit
a0158eff96
5 files changed
+82
-6
No files matched your search
@@ -64,4 +64,10 @@ api.issue do
|
||||
end
|
||||
end
|
||||
end if include_in_api_response?('journals')
|
||||
|
||||
api.array :watchers do
|
||||
@issue.watcher_users.each do |user|
|
||||
api.user :id => user.id, :name => user.name
|
||||
end
|
||||
end if include_in_api_response?('watchers') && User.current.allowed_to?(:view_issue_watchers, @issue.project)
|
||||
end
|
||||
Reference in new issue
Block a user