ApplicationHelper#link_to_remote_if_authorized deprecated.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10039 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d4f7b4af6d
commit
c790f1ca41
|
@ -45,6 +45,7 @@ module ApplicationHelper
|
||||||
|
|
||||||
# Display a link to remote if user is authorized
|
# Display a link to remote if user is authorized
|
||||||
def link_to_remote_if_authorized(name, options = {}, html_options = nil)
|
def link_to_remote_if_authorized(name, options = {}, html_options = nil)
|
||||||
|
ActiveSupport::Deprecation.warn "ApplicationHelper#link_to_remote_if_authorized is deprecated and will be removed in Redmine 2.2."
|
||||||
url = options[:url] || {}
|
url = options[:url] || {}
|
||||||
link_to_remote(name, options, html_options) if authorize_for(url[:controller] || params[:controller], url[:action])
|
link_to_remote(name, options, html_options) if authorize_for(url[:controller] || params[:controller], url[:action])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue