public function execute() { parent::execute(); $entry = new BashEntryEditor($this->entryID); if ($entry->entryID == 0) { throw new IllegalLinkException(); } if (!BASHCore::getUser()->getPermission('mod.bash.moderatorPermissions')) { throw new PermissionDeniedException(); } $entry->isDisabled = 0; $entry->update(); HeaderUtil::redirect(BASHCore::getSession()->lastRequestURI, false); }