summaryrefslogtreecommitdiffstats
path: root/core/avatar/avatarcontroller.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-15 16:52:12 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-15 16:52:12 +0200
commita446b43bccc2f366a3e64df25320d8e05cd68acb (patch)
treed735ef8ca6bb686fd4a83cb1ece89a31d6fcd6ec /core/avatar/avatarcontroller.php
parent650e600b942d830460bb96de6726bdd1e8284a8e (diff)
downloadnextcloud-server-a446b43bccc2f366a3e64df25320d8e05cd68acb.tar.gz
nextcloud-server-a446b43bccc2f366a3e64df25320d8e05cd68acb.zip
Revert "Allow Remote avatars"
Diffstat (limited to 'core/avatar/avatarcontroller.php')
-rw-r--r--core/avatar/avatarcontroller.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/avatar/avatarcontroller.php b/core/avatar/avatarcontroller.php
index 0c270bee53e..945e022600a 100644
--- a/core/avatar/avatarcontroller.php
+++ b/core/avatar/avatarcontroller.php
@@ -90,18 +90,14 @@ class AvatarController extends Controller {
}
/**
+ * @NoAdminRequired
* @NoCSRFRequired
- * @PublicPage
*
* @param string $userId
* @param int $size
* @return DataResponse|DataDisplayResponse
*/
public function getAvatar($userId, $size) {
- if (!$this->userManager->userExists($userId)) {
- return new DataResponse([], Http::STATUS_NOT_FOUND);
- }
-
if ($size > 2048) {
$size = 2048;
} elseif ($size <= 0) {