From b6af271b87f341bb392f19cd608d668497ab0f21 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 14 Nov 2022 10:41:39 +0100 Subject: [PATCH] Fix bad merge in EnforceAcpAuthentication middleware The exception should no longer be there. see a693ef9dc6ab80b8c3c4671923071e4b9f9b23f3 see 2115b6456f75068740d54db29d4b5970a4bb7f36 --- .../lib/http/middleware/EnforceAcpAuthentication.class.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wcfsetup/install/files/lib/http/middleware/EnforceAcpAuthentication.class.php b/wcfsetup/install/files/lib/http/middleware/EnforceAcpAuthentication.class.php index dd77f08493..306ecfdd9a 100644 --- a/wcfsetup/install/files/lib/http/middleware/EnforceAcpAuthentication.class.php +++ b/wcfsetup/install/files/lib/http/middleware/EnforceAcpAuthentication.class.php @@ -111,10 +111,6 @@ final class EnforceAcpAuthentication implements MiddlewareInterface AJAXException::INSUFFICIENT_PERMISSIONS ); } else { - throw new NamedUserException( - WCF::getLanguage()->getDynamicVariable('wcf.user.username.error.acpNotAuthorized') - ); - return new HtmlResponse( WCF::getTPL()->fetchStream( 'acpNotAuthorized', -- 2.20.1