Check photos version for albums

old-stable24
Varun Patil 2022-10-27 02:39:44 -07:00
parent 038ba2eb87
commit 86660056bb
1 changed files with 7 additions and 1 deletions

View File

@ -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', '>=');
}
/**