The result list should be aware for access to menu links

Comments

michaelmol’s picture

To achieve this, the range on the query is obsolete.
In the loop for each record from the query the function menu_get_item($path) should be called and an check if the access attribute is set.
After that the return array should be sliced, to return no to many results.

This extra callback can cause potentially performance issues.

michaelmol’s picture

michaelmol’s picture

Status: Fixed » Closed (fixed)
michaelmol’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit d1de8b6 on 7.x-1.x, 8.x-1.x by michaelmol:
    Fixed #1400048 by michaelmol: Add access check for links