diff options
author | Simon Green <sgreen@redhat.com> | 2014-07-27 18:47:21 +1000 |
---|---|---|
committer | Simon Green <sgreen@redhat.com> | 2014-07-27 18:47:21 +1000 |
commit | fd29ee56c4678749c00e7698ef245f7e2967ee10 (patch) | |
tree | 9d0696c9a89b8df8a6d46e2be6602a449b7354c3 /js/comment-tagging.js | |
parent | 9f0f44b7fb73e9af0cdaefe8f5ff617f14fec2ed (diff) | |
download | bugs-fd29ee56c4678749c00e7698ef245f7e2967ee10.tar bugs-fd29ee56c4678749c00e7698ef245f7e2967ee10.tar.gz bugs-fd29ee56c4678749c00e7698ef245f7e2967ee10.tar.bz2 bugs-fd29ee56c4678749c00e7698ef245f7e2967ee10.tar.xz bugs-fd29ee56c4678749c00e7698ef245f7e2967ee10.zip |
Bug 726696 - All authenticated WebServices methods should require username/pass, token or a valid API key for authentication
r=dkl, a=sgreen
Diffstat (limited to 'js/comment-tagging.js')
-rw-r--r-- | js/comment-tagging.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/comment-tagging.js b/js/comment-tagging.js index 035d05b0b..987dfd8da 100644 --- a/js/comment-tagging.js +++ b/js/comment-tagging.js @@ -50,7 +50,11 @@ YAHOO.bugzilla.commentTagging = { return YAHOO.lang.JSON.stringify({ method : "Bug.search_comment_tags", id : YAHOO.bugzilla.commentTagging.counter, - params : [ { query : query, limit : 10 } ] + params : { + Bugzilla_api_token: BUGZILLA.api_token, + query : query, + limit : 10 + } }); }; ac.minQueryLength = this.min_len; @@ -327,6 +331,7 @@ YAHOO.bugzilla.commentTagging = { version: "1.1", method: 'Bug.comments', params: { + Bugzilla_api_token: BUGZILLA.api_token, comment_ids: [ comment_id ], include_fields: [ 'tags' ] } @@ -359,6 +364,7 @@ YAHOO.bugzilla.commentTagging = { version: "1.1", method: 'Bug.update_comment_tags', params: { + Bugzilla_api_token: BUGZILLA.api_token, comment_id: comment_id, add: add, remove: remove |