use GuzzleHttp\ClientInterface;
use GuzzleHttp\Psr7\Request;
use ParagonIE\ConstantTime\Hex;
-use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\NamedUserException;
+use wcf\system\exception\PermissionDeniedException;
use wcf\system\io\HttpFactory;
use wcf\system\user\authentication\oauth\User as OauthUser;
use wcf\system\WCF;
parent::readParameters();
if (WCF::getSession()->spiderID) {
- throw new IllegalLinkException();
+ throw new PermissionDeniedException();
}
}
namespace wcf\action;
use ParagonIE\ConstantTime\Hex;
use wcf\data\user\User;
-use wcf\data\user\UserEditor;
use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\NamedUserException;
+use wcf\system\exception\PermissionDeniedException;
use wcf\system\exception\SystemException;
use wcf\system\request\LinkHandler;
-use wcf\system\user\authentication\UserAuthenticationFactory;
use wcf\system\WCF;
use wcf\util\HeaderUtil;
use wcf\util\HTTPRequest;
parent::readParameters();
if (WCF::getSession()->spiderID) {
- throw new IllegalLinkException();
+ throw new PermissionDeniedException();
}
}