Restrict access to application log with 'application/log' permission
fixes #11279
This commit is contained in:
parent
929f45deea
commit
88d973ac39
|
@ -39,6 +39,8 @@ class ListController extends Controller
|
|||
*/
|
||||
public function applicationlogAction()
|
||||
{
|
||||
$this->assertPermission('application/log');
|
||||
|
||||
if (! Logger::writesToFile()) {
|
||||
$this->httpNotFound('Page not found');
|
||||
}
|
||||
|
|
|
@ -363,9 +363,10 @@ class Web extends EmbeddedWeb
|
|||
|
||||
if (Logger::writesToFile()) {
|
||||
$menu['system']['children']['application_log'] = array(
|
||||
'label' => t('Application Log'),
|
||||
'url' => 'list/applicationlog',
|
||||
'priority' => 710
|
||||
'label' => t('Application Log'),
|
||||
'url' => 'list/applicationlog',
|
||||
'permission' => 'application/log',
|
||||
'priority' => 710
|
||||
);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -260,8 +260,9 @@ class Menu implements RecursiveIterator
|
|||
));
|
||||
if (Logger::writesToFile()) {
|
||||
$section->add(t('Application Log'), array(
|
||||
'url' => 'list/applicationlog',
|
||||
'priority' => 710
|
||||
'url' => 'list/applicationlog',
|
||||
'permission' => 'application/log',
|
||||
'priority' => 710
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue