Add tests & remove unused method

This commit is contained in:
Philipp 2021-10-31 13:58:52 +01:00
parent 71cdbcfc24
commit 130f97717d
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
2 changed files with 25 additions and 17 deletions

View file

@ -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