From 3dbc1b28b59a0b073fe2d72cfae2dc3ff22bc6ff Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 3 Oct 2025 22:27:29 +0200 Subject: [PATCH] [ticket/15085] Reload ACL after HTTP authentication and update gitignore PHPBB-15085 --- .gitignore | 1 + .phpunit.result.cache | 1 - phpBB/phpbb/feed/event/http_auth_subscriber.php | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 .phpunit.result.cache diff --git a/.gitignore b/.gitignore index 15125b68cc..eda70c0605 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ node_modules .idea *.DS_Store* /.vscode +/.phpunit.result.cache diff --git a/.phpunit.result.cache b/.phpunit.result.cache deleted file mode 100644 index aac751d9fb..0000000000 --- a/.phpunit.result.cache +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"defects":[],"times":{"phpbb\\feed\\event\\http_auth_subscriber_test::test_subscriber_events":0.006,"phpbb\\feed\\event\\http_auth_subscriber_test::test_non_feed_route_skipped":0.005,"phpbb\\feed\\event\\http_auth_subscriber_test::test_http_auth_disabled":0.001,"phpbb\\feed\\event\\http_auth_subscriber_test::test_user_already_logged_in":0.001}} \ No newline at end of file diff --git a/phpBB/phpbb/feed/event/http_auth_subscriber.php b/phpBB/phpbb/feed/event/http_auth_subscriber.php index 8b3f03b0bd..3c35c769c8 100644 --- a/phpBB/phpbb/feed/event/http_auth_subscriber.php +++ b/phpBB/phpbb/feed/event/http_auth_subscriber.php @@ -100,6 +100,8 @@ class http_auth_subscriber implements EventSubscriberInterface if ($auth_result['status'] == LOGIN_SUCCESS) { + // Reload ACL for the newly logged-in user + $this->auth->acl($this->user->data); return; } else if ($auth_result['status'] == LOGIN_ERROR_ATTEMPTS)