From b2cede5526ee3fc516b3e41937927ac3cf75a3b7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 13 Sep 2017 11:11:47 +0200 Subject: [PATCH] Create permission obj+mapper --- Controller.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Controller.php b/Controller.php index f221d1e..887b1fa 100644 --- a/Controller.php +++ b/Controller.php @@ -306,10 +306,6 @@ class Controller extends ModuleAbstract implements WebInterface ->offset($offset) ->limit($limit); - if (isset($account)) { - $query->where('account_permission.account_permission_account', '=', $account->getId()); - } - return NewsArticleMapper::getAllByQuery($query); } @@ -335,10 +331,6 @@ class Controller extends ModuleAbstract implements WebInterface ->offset($offset) ->limit($limit); - if (isset($account)) { - $query->where('account_permission.account_permission_account', '=', $account->getId()); - } - return NewsArticleMapper::getAllByQuery($query); }