Angular service to avoid routes from being loaded and ajax or socket calls from being made without the required permissions.