We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UserProfile::ACCESS_EVERYONE
1 parent 09048cf commit e4c3633Copy full SHA for e4c3633
wcfsetup/install/files/lib/system/worker/UserRebuildDataWorker.class.php
@@ -349,7 +349,7 @@ public function execute()
349
private function updateUserOnlineStatus(array $users): void
350
{
351
foreach ($users as $user) {
352
- if (!$user->canViewOnlineStatus) {
+ if ($user->canViewOnlineStatus == UserProfile::ACCESS_EVERYONE) {
353
continue;
354
}
355
$userProfile = new UserProfile($user->getDecoratedObject());
@@ -358,7 +358,7 @@ private function updateUserOnlineStatus(array $users): void
358
359
360
$user->updateUserOptions([
361
- User::getUserOptionID('canViewOnlineStatus') => 0,
+ User::getUserOptionID('canViewOnlineStatus') => UserProfile::ACCESS_EVERYONE,
362
]);
363
364
0 commit comments