typos, remove disableProfileViewsForRegularUsers

This commit is contained in:
tonis
2024-03-08 14:15:30 +02:00
parent d5d211a9e9
commit f319bf70e2
2 changed files with 1 additions and 5 deletions

View File

@ -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:

View File

@ -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`.