diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 6042fd55..5e40965f 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -793,7 +793,13 @@ class ApiController extends Controller */ private function albumsIsEnabled(): bool { - return $this->appManager->isEnabledForUser('photos'); + if (!$this->appManager->isEnabledForUser('photos')) { + return false; + } + + $v = $this->appManager->getAppInfo('photos')['version']; + + return version_compare($v, '1.7.0', '>='); } /**