Merge pull request #8390 from annando/fix-fatal

Fix fatal error (TypeError)
This commit is contained in:
Tobias Diekershoff 2020-03-09 10:12:28 +01:00 committed by GitHub
commit 50c2cb6535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ class Photo
$uid = $r["uid"];
$accessible = $uid ? DI::pConfig()->get($uid, 'system', 'accessible-photos') : false;
$accessible = $uid ? (bool)DI::pConfig()->get($uid, 'system', 'accessible-photos', false) : false;
$sql_acl = Security::getPermissionsSQLByUserId($uid, $accessible);