]> source.dussan.org Git - redmine.git/commit
Change link_to_if_authorized to allow url paths. (Fixes #6195)
authorEric Davis <edavis@littlestreamsoftware.com>
Mon, 6 Sep 2010 00:26:08 +0000 (00:26 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Mon, 6 Sep 2010 00:26:08 +0000 (00:26 +0000)
commitd771fa92892a8835168856b8a148d05b550440dc
tree062f20ace1e13cf3ac7b8377a75d7f07b7898faf
parent563c879e44237eff4846ef44ae93ec43c27ba47f
Change link_to_if_authorized to allow url paths. (Fixes #6195)

Both url paths (/issues/1234) and params hashes (:controller => 'issues')
are now supported by link_to_if_authorized.  The authorize_for method
requires a controller/action pair so urls need to be parsed against the
routes to find their controller/action.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4064 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/helpers/application_helper.rb
test/unit/helpers/application_helper_test.rb