Defect #5016

link_to_if_authorized does not display an authorized linke if passing a named url

Added by Jeff Cantrill over 11 years ago. Updated over 10 years ago.

Status:NewStart date:2010-03-09
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:UI
Target version:-
Resolution: Affected version:

Description

The link_to_if_authorized helper method does not return the anchor tag for an authorized user if it is passed a named url (e.g)

link_to_if_authorized('my label', my_named(path(@project),:class=>'icon)

The call passes options[:action] to authorize_for which is nil

History

#1 Updated by Etienne Massip over 10 years ago

Permissions are based on the controller/action pair inside a module, what permission would "my_named(path(@project)" correspond to ?

Also available in: Atom PDF