How to get access only for registers users with roles to some pages of website?

Hello!

  1. How to hide items from navbar menu for non-registers users?
  2. How to get access only for registers users with roles to some pages of website?
    Something like on screenshot.

you have to do this manually.
for navbar , edit the navar_items.html inside frappe/templates/includes/navbar. (you can check the session user or role using jinja or add js script , anything you want )
also for the pages permission .
same for page permissions , use js or python to redirect you to another page if some conditions.