Fix permissions when viewing photos, applying same fix to items as well

This commit is contained in:
Michael 2019-09-27 05:49:23 +00:00
parent abecf62f2d
commit 3dd94355b7
3 changed files with 16 additions and 16 deletions

View file

@ -3263,7 +3263,11 @@ class Item extends BaseObject
public static function getPermissionsSQLByUserId($owner_id, $remote_verified = false, $groups = null, $remote_cid = null)
{
$local_user = local_user();
$remote_user = remote_user();
$remote_user = remote_user($owner_id);
if (is_null($remote_cid)) {
$remote_cid = $remote_user;
}
/*
* Construct permissions