alexAlToader
New member
Hi,
I am trying to make an API endpoint to get the navigation.
I need to get the active links for which the user has permissions (by his token)
Now... in admin, each link has his own "Display condition"
But we also have XF permissions which apply to.. nodes
My first question is to what else (from the available navigation - other than nodes) do we apply permissions pls?
So when I get the list of navigation links from db, I need to run something like
$navigations = getActiveNavigation();
$navigations = filterDisplayConditions();
$navigaitons = filterXFPermissions();
So my second question is if and where can I see some code that does something like this pls?
I would like a starting point on this pls as I am pretty lost tbh.
Thanks
I am trying to make an API endpoint to get the navigation.
I need to get the active links for which the user has permissions (by his token)
Now... in admin, each link has his own "Display condition"
But we also have XF permissions which apply to.. nodes
My first question is to what else (from the available navigation - other than nodes) do we apply permissions pls?
So when I get the list of navigation links from db, I need to run something like
$navigations = getActiveNavigation();
$navigations = filterDisplayConditions();
$navigaitons = filterXFPermissions();
So my second question is if and where can I see some code that does something like this pls?
I would like a starting point on this pls as I am pretty lost tbh.
Thanks