mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-03 02:38:40 +00:00
Create permission obj+mapper
This commit is contained in:
parent
08aaafa99d
commit
b2cede5526
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user