|
|
@ -142,6 +142,11 @@ class UserController extends AbstractController |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Update sensitive |
|
|
|
|
|
|
|
$user->setSensitive( |
|
|
|
|
|
|
|
$request->get('sensitive') === 'true' |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Save changes to DB |
|
|
|
// Save changes to DB |
|
|
|
$userService->save($user); |
|
|
|
$userService->save($user); |
|
|
|
|
|
|
|
|
|
|
@ -164,6 +169,7 @@ class UserController extends AbstractController |
|
|
|
'moderator' => $user->isModerator(), |
|
|
|
'moderator' => $user->isModerator(), |
|
|
|
'approved' => $user->isApproved(), |
|
|
|
'approved' => $user->isApproved(), |
|
|
|
'status' => $user->isStatus(), |
|
|
|
'status' => $user->isStatus(), |
|
|
|
|
|
|
|
'sensitive' => $user->isSensitive(), |
|
|
|
'locale' => $user->getLocale(), |
|
|
|
'locale' => $user->getLocale(), |
|
|
|
'locales' => $user->getLocales(), |
|
|
|
'locales' => $user->getLocales(), |
|
|
|
'theme' => $user->getTheme(), |
|
|
|
'theme' => $user->getTheme(), |
|
|
@ -223,8 +229,10 @@ class UserController extends AbstractController |
|
|
|
'moderator' => $userTarget->isModerator(), |
|
|
|
'moderator' => $userTarget->isModerator(), |
|
|
|
'approved' => $userTarget->isApproved(), |
|
|
|
'approved' => $userTarget->isApproved(), |
|
|
|
'status' => $userTarget->isStatus(), |
|
|
|
'status' => $userTarget->isStatus(), |
|
|
|
|
|
|
|
'sensitive' => $userTarget->isSensitive(), |
|
|
|
'locale' => $userTarget->getLocale(), |
|
|
|
'locale' => $userTarget->getLocale(), |
|
|
|
'locales' => $userTarget->getLocales(), |
|
|
|
'locales' => $userTarget->getLocales(), |
|
|
|
|
|
|
|
'theme' => $userTarget->getTheme(), |
|
|
|
'added' => $userTarget->getAdded(), |
|
|
|
'added' => $userTarget->getAdded(), |
|
|
|
'identicon' => $userService->identicon( |
|
|
|
'identicon' => $userService->identicon( |
|
|
|
$userTarget->getAddress(), |
|
|
|
$userTarget->getAddress(), |
|
|
|