/**
  * @see Action::execute()
  */
 public function execute()
 {
     parent::execute();
     // check permission
     WCF::getUser()->checkPermission('admin.user.rank.canDeleteRank');
     // delete rank
     require_once WCF_DIR . 'lib/data/user/rank/UserRankEditor.class.php';
     $userRank = new UserRankEditor($this->rankID);
     if (!$userRank->rankID) {
         throw new IllegalLinkException();
     }
     $userRank->delete();
     $this->executed();
     // forward to list page
     HeaderUtil::redirect('index.php?page=UserRankList&deletedRankID=' . $this->rankID . '&packageID=' . PACKAGE_ID . SID_ARG_2ND_NOT_ENCODED);
     exit;
 }