Create permission obj+mapper

This commit is contained in:
Dennis Eichhorn 2017-09-13 11:11:47 +02:00
parent 08aaafa99d
commit b2cede5526

View File

@ -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);
}