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)