1
0
Fork 0

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);