Project

General

Profile

Feature #30921

Enable link_to_if_authorized calls from isolated engines

Added by Ondřej Ezr about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Authentication
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

link_to_if_authorized doesn't support calls from another isolated namespace engine (plugin using such).


Related issues

Blocked by Foreman - Refactor #30170: Extract Smart Parameters to a pluginAssigned

Associated revisions

Revision ba4732c2 (diff)
Added by Ondřej Ezr about 2 months ago

Fixes #30921 - enable authorized link_to from engines

Engines with isolated namespace can't use hash to get rout of another namespace.
Enable link_to_if_authorized use the url_for directly on the required engine
to support usage from plugins using isolated namespaces.

Revision 85a3ebb2 (diff)
Added by Ondřej Ezr about 1 month ago

Refs #30921 - enable authorized link_to from engines

Engines with isolated namespace can't use hash to get rout of another namespace.
Enable link_to_if_authorized use the url_for directly on the required engine
to support usage from plugins using isolated namespaces.

In ba4732c2bd we've done it for `link_to_authorized`.
This is doing the same for `display_link_if_authorized`.

History

#1 Updated by Ondřej Ezr about 2 months ago

#2 Updated by The Foreman Bot about 2 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8026 added

#3 Updated by The Foreman Bot about 2 months ago

  • Fixed in Releases 2.3.0 added

#4 Updated by Ondřej Ezr about 2 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by The Foreman Bot about 1 month ago

  • Pull request https://github.com/theforeman/foreman/pull/8096 added

Also available in: Atom PDF