Merge pull request #1044 from nlegoff/feed-restriction

[3.9] Fix feeds aggregation restrictions
This commit is contained in:
Nicolas Le Goff
2014-03-31 15:46:37 +02:00

View File

@@ -78,7 +78,7 @@ class Aggregate implements FeedInterface
*/
public static function createFromUser(Application $app, User $user, array $restrictions = [])
{
$feeds = $app['repo.feeds']->getAllForUser($app['acl']->get($user));
$feeds = $app['repo.feeds']->getAllForUser($app['acl']->get($user), $restrictions);
$token = $app['repo.aggregate-tokens']->findOneBy(['user' => $user]);
return new static($app['EM'], $feeds, $token);