mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-16 00:18:41 +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)
|
->offset($offset)
|
||||||
->limit($limit);
|
->limit($limit);
|
||||||
|
|
||||||
if (isset($account)) {
|
|
||||||
$query->where('account_permission.account_permission_account', '=', $account->getId());
|
|
||||||
}
|
|
||||||
|
|
||||||
return NewsArticleMapper::getAllByQuery($query);
|
return NewsArticleMapper::getAllByQuery($query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -335,10 +331,6 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
->offset($offset)
|
->offset($offset)
|
||||||
->limit($limit);
|
->limit($limit);
|
||||||
|
|
||||||
if (isset($account)) {
|
|
||||||
$query->where('account_permission.account_permission_account', '=', $account->getId());
|
|
||||||
}
|
|
||||||
|
|
||||||
return NewsArticleMapper::getAllByQuery($query);
|
return NewsArticleMapper::getAllByQuery($query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user