Admin code to restrict access to certain links