mirror of
https://github.com/friendica/friendica
synced 2025-05-01 08:24:23 +02:00
Add tests & remove unused method
This commit is contained in:
parent
71cdbcfc24
commit
130f97717d
2 changed files with 25 additions and 17 deletions
|
@ -55,22 +55,6 @@ class PermissionSet extends BaseRepository
|
|||
$this->aclFormatter = $aclFormatter;
|
||||
}
|
||||
|
||||
/**
|
||||
* replaces the PUBLIC id for the public permissionSet
|
||||
* (no need to create the default permission set over and over again)
|
||||
*
|
||||
* @param $condition
|
||||
*/
|
||||
private function checkPublicSelect(&$condition)
|
||||
{
|
||||
if (empty($condition['allow_cid']) &&
|
||||
empty($condition['allow_gid']) &&
|
||||
empty($condition['deny_cid']) &&
|
||||
empty($condition['deny_gid'])) {
|
||||
$condition['uid'] = self::PUBLIC;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $condition
|
||||
* @param array $params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue