diff --git a/www/experiments/user_access.inc b/www/experiments/user_access.inc index 4ec48f04ce..c500c65559 100644 --- a/www/experiments/user_access.inc +++ b/www/experiments/user_access.inc @@ -3,5 +3,5 @@ use WebPageTest\Util; // experiments permissions checks -$experiments_logged_in = Util::getSetting('cp_auth') && (!is_null($request_context->getClient()) && $request_context->getClient()->isAuthenticated()); +$experiments_logged_in = (Util::getSetting('cp_auth') && (!is_null($request_context->getClient()) && $request_context->getClient()->isAuthenticated())) || Util::getSetting('experiments_anon'); $experiments_paid = (!is_null($request_context->getUser()) && $request_context->getUser()->isPaid()) || ($experiments_logged_in && Util::getSetting('experiments_open'));