Project

General

Profile

Actions

Defect #5016

open

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

Added by Jeff Cantrill about 14 years ago. Updated about 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
2010-03-09
Due date:
% Done:

0%

Estimated time:
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

Actions

Also available in: Atom PDF