mirror of
https://github.com/friendica/friendica
synced 2025-04-28 13:04:23 +02:00
Removed obsolete code
This commit is contained in:
parent
3dd94355b7
commit
1ddd2df4b8
9 changed files with 28 additions and 219 deletions
|
@ -3260,15 +3260,11 @@ class Item extends BaseObject
|
|||
}
|
||||
}
|
||||
|
||||
public static function getPermissionsSQLByUserId($owner_id, $remote_verified = false, $groups = null, $remote_cid = null)
|
||||
public static function getPermissionsSQLByUserId($owner_id)
|
||||
{
|
||||
$local_user = local_user();
|
||||
$remote_user = remote_user($owner_id);
|
||||
|
||||
if (is_null($remote_cid)) {
|
||||
$remote_cid = $remote_user;
|
||||
}
|
||||
|
||||
/*
|
||||
* Construct permissions
|
||||
*
|
||||
|
@ -3287,7 +3283,7 @@ class Item extends BaseObject
|
|||
* If pre-verified, the caller is expected to have already
|
||||
* done this and passed the groups into this function.
|
||||
*/
|
||||
$set = PermissionSet::get($owner_id, $remote_cid, $groups);
|
||||
$set = PermissionSet::get($owner_id, $remote_user);
|
||||
|
||||
if (!empty($set)) {
|
||||
$sql_set = " OR (`item`.`private` IN (1,2) AND `item`.`wall` AND `item`.`psid` IN (" . implode(',', $set) . "))";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue