From f319bf70e217aab99503641284a29e6385af95b0 Mon Sep 17 00:00:00 2001 From: tonis Date: Fri, 8 Mar 2024 14:15:30 +0200 Subject: [PATCH] typos, remove disableProfileViewsForRegularUsers --- src/User/Controller/ProfileController.php | 2 +- src/User/Module.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/User/Controller/ProfileController.php b/src/User/Controller/ProfileController.php index 4ed53d4..da779b8 100644 --- a/src/User/Controller/ProfileController.php +++ b/src/User/Controller/ProfileController.php @@ -90,7 +90,7 @@ class ProfileController extends Controller switch($this->module->profileVisibility) { case static::PROFILE_VISIBILITY_OWNER: if($identity === null || $id !== $user->getId()) { - throw new ForbiddenHttpException("1"); + throw new ForbiddenHttpException(); } break; case static::PROFILE_VISIBILITY_ADMIN: diff --git a/src/User/Module.php b/src/User/Module.php index 307f1b5..85c76df 100755 --- a/src/User/Module.php +++ b/src/User/Module.php @@ -248,10 +248,6 @@ class Module extends BaseModule * @var boolean whether to disable IP logging into user table */ public $disableIpLogging = false; - /** - * @var boolean whether to disable viewing any user's profile for non-admin users - */ - public $disableProfileViewsForRegularUsers = false; /** * @var array Minimum requirements when a new password is automatically generated. * Array structure: `requirement => minimum number characters`.