diff options
Diffstat (limited to 'apps/files/lib/Controller/ApiController.php')
-rw-r--r-- | apps/files/lib/Controller/ApiController.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index a852be5dad5..2b8d62efb7c 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -281,6 +281,20 @@ class ApiController extends Controller { } /** + * Toggle default for cropping preview images + * + * @NoAdminRequired + * + * @param bool $crop + * @return Response + * @throws \OCP\PreConditionNotMetException + */ + public function cropImagePreviews($crop) { + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'crop_image_previews', (int)$crop); + return new Response(); + } + + /** * Toggle default for files grid view * * @NoAdminRequired |