44 if (substr($task, 0, 8) === 'modules.' || $view === 'modules') {
45 if (!$user->authorise('module.edit.frontend', 'com_modules.module.' . $this->input->get('id'))) {
46 throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
47 }
48 } elseif (!$user->authorise('core.admin')) {
49 throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
50 }
51 }
52 }