Reply To: [Resolved] the right way to remove nav items
I’d like to restrict the submenus used in profile views to show only if a user is on their own profile or if they are an admin. I think this thread speaks to that. Please let me know if I’m wrong…
I tried using @danbp ‘s code, but I get a “page not found” on pages that should just be removing the submenu. Logging in as a test user with no admin abilities, I can view my own profile with all tabs intact – but if I go to another user page, I get a 404.
Assuming I understand the intent of the code, does it need to be adjusted?