Permalink
Browse files

Support for accept_api_auth (new in Redmine 1.2)

  • Loading branch information...
Sven Krzyzak
Sven Krzyzak committed Jul 17, 2011
1 parent a65e960 commit d495db029e8789a1229fa7611302f3dc9efd1fa1
@@ -4,7 +4,8 @@ class MylynConnector::CustomFieldsController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -4,7 +4,8 @@ class MylynConnector::InformationController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :version, :token
+ accept_key_auth :version, :token #Redmine<1.2
+ accept_api_auth :version, :token, :authtest #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -4,7 +4,8 @@ class MylynConnector::IssueCategoriesController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -5,7 +5,8 @@ class MylynConnector::IssuePrioritiesController < ApplicationController
include MylynConnector::Rescue::ClassMethods
include MylynConnector::Version::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -4,7 +4,8 @@ class MylynConnector::IssueStatusController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -4,7 +4,8 @@ class MylynConnector::IssuesController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :show, :index, :list, :updated_since
+ accept_key_auth :show, :index, :list, :updated_since #Redmine<1.2
+ accept_api_auth :show, :index, :list, :updated_since #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -4,7 +4,8 @@ class MylynConnector::ProjectsController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -4,7 +4,8 @@ class MylynConnector::QueriesController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -4,7 +4,8 @@ class MylynConnector::SettingsController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -5,7 +5,8 @@ class MylynConnector::TimeEntryActivitiesController < ApplicationController
include MylynConnector::Rescue::ClassMethods
include MylynConnector::Version::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -4,7 +4,8 @@ class MylynConnector::TrackersController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -5,7 +5,8 @@ class MylynConnector::UsersController < ApplicationController
include MylynConnector::Rescue::ClassMethods
include MylynConnector::Version::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -4,7 +4,8 @@ class MylynConnector::VersionsController < ApplicationController
unloadable
include MylynConnector::Rescue::ClassMethods
- accept_key_auth :all
+ accept_key_auth :all #Redmine<1.2
+ accept_api_auth :all #Redmine>=1.2
skip_before_filter :verify_authenticity_token
@@ -32,7 +32,7 @@ xml.issue({:id => issue.id, :editAllowed => edit_allowed?(issue)}.merge(attr||={
xml.categoryId issue.category_id if issue.category_id
xml.assignedToId issue.assigned_to_id if issue.assigned_to_id
xml.fixedVersionId issue.fixed_version_id if issue.fixed_version_id
- xml.parentId issue.parent_id if is1dot0? && issue.parent_id
+ xml.parentId issue.parent_id if issue.parent_id
xml.availableStatus integer_list(available_status(issue))
View
@@ -1,5 +1,6 @@
Version 2.7.3
chg : Fixtures adapted for Redmine 1.2
+ add : Support for accept_api_auth (new in Redmine 1.2)
Version 2.7.2
bugfix: Missing support for manipulation of issue watchers

0 comments on commit d495db0

Please sign in to comment.