mirror of
https://github.com/friendica/friendica
synced 2025-04-28 13:04:23 +02:00
Fix permissions when viewing photos, applying same fix to items as well
This commit is contained in:
parent
abecf62f2d
commit
3dd94355b7
3 changed files with 16 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue