code: function handleUnauthorizedState(rejectedPermission, statePermissionMap) {
          PermTransitionEvents.broadcastPermissionDeniedEvent();
  
          statePermissionMap
            .resolveRedirectState(rejectedPermission)
            .then(function (redirect) {
              $state.go(redirect.state, redirect.params, redirect.options);
            });
        }
docs: Handles redirection for unauthorized access
  @method
  @private
  
  @param rejectedPermission {String} Rejected access right
  @param statePermissionMap {permission.ui.PermPermissionMap} State permission map