Displays menu icons for fast navigation

Hello,

In my PHPMaker 2025 project, I created a custom “Quick Access Dashboard” page that displays menu icons for fast navigation.

I want these icons to reflect the same visibility permissions as the main sidebar menu, meaning:
If a user does not have permission to access a menu item in the sidebar, the icon for that item should not appear on the dashboard page.

My question s:
What is the recommended method to populate the icons on my custom dashboard using the existing menu structure and permissions from PHPMaker?

Currently, I manually create the icons, but I would like to dynamically pull allowed menu items with their icons, URLs, and labels based on the current user’s permissions, the same way the sidebar works.
Is there a built-in function or preferred approach for this?

Thank you for your support.

Use the global security objects

if (Security()->canEdit()) { // Check if current user has Edit permission for the current table (for use with User Level Security
    ...your code...
}

See the docs…