##// END OF EJS Templates
ApplicationHelper#link_to_remote_if_authorized deprecated....
Jean-Philippe Lang -
r9856:c790f1ca41e0
parent child
Show More
@@ -45,6 +45,7 module ApplicationHelper
45
45
46 # Display a link to remote if user is authorized
46 # Display a link to remote if user is authorized
47 def link_to_remote_if_authorized(name, options = {}, html_options = nil)
47 def link_to_remote_if_authorized(name, options = {}, html_options = nil)
48 ActiveSupport::Deprecation.warn "ApplicationHelper#link_to_remote_if_authorized is deprecated and will be removed in Redmine 2.2."
48 url = options[:url] || {}
49 url = options[:url] || {}
49 link_to_remote(name, options, html_options) if authorize_for(url[:controller] || params[:controller], url[:action])
50 link_to_remote(name, options, html_options) if authorize_for(url[:controller] || params[:controller], url[:action])
50 end
51 end
General Comments 0
You need to be logged in to leave comments. Login now