Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1894abcf90 |
@@ -27,6 +27,8 @@ class DashboardController extends BaseController
|
||||
*/
|
||||
public function migrate(): void
|
||||
{
|
||||
$this->checkToken();
|
||||
|
||||
// Check ACL
|
||||
if (!$this->app->getIdentity()->authorise('mokojoomcross.migrate', 'com_mokojoomcross')) {
|
||||
$this->setRedirect(
|
||||
|
||||
@@ -156,6 +156,12 @@ class PostsController extends AdminController
|
||||
*/
|
||||
public function exportCsv(): void
|
||||
{
|
||||
$this->checkToken('get');
|
||||
|
||||
if (!$this->app->getIdentity()->authorise('core.manage', 'com_mokojoomcross')) {
|
||||
throw new \RuntimeException(Text::_('JLIB_APPLICATION_ERROR_ACCESS_FORBIDDEN'), 403);
|
||||
}
|
||||
|
||||
$app = $this->app;
|
||||
$db = Factory::getDbo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user