Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Proposing to show "No Permission" page inline instead of redirecting to it.

  1. create "kUrlManager::show401($template = null)" method:
    1. similar to "kUrlManager::show404"
    2. will be sending "401" HTTP response code
    3. will use "No Permission" template if none given directly
  2. change top part (that configures redirect) of "kRequestManager::processPermissionError" method to:
    1. use "kUrlManager::show401" method
    2. get "$event" redirect params and do a SetVar on them right away (since no redirect will be happening)
  3. change top part (that configures redirect) of "kDBEventHandler::_processItemLoadingError" method to use "kUrlManager::show401" method
  4. change part (that configures no permission redirect) of "kPermissionsHeleper::getPermissionTemplate" method to:
    1. use "kUrlManager::show401" method
    2. pass $params['no_permissions_template'] to it, when available and "null" otherwise
    3. doing SetVar right away (remove debug mode check) instead of setting keys into "$redirect_params" array

Related Discussions

...