Commit 2eccba71 authored by catch's avatar catch

Issue #2062005 by InternetDevels: Replace user_access() calls with...

Issue #2062005 by InternetDevels: Replace user_access() calls with $account->hasPermission() in menu module.
parent e8623ae7
......@@ -499,7 +499,7 @@ function menu_form_node_form_alter(&$form, $form_state) {
$form['menu'] = array(
'#type' => 'details',
'#title' => t('Menu settings'),
'#access' => user_access('administer menu'),
'#access' => Drupal::currentUser()->hasPermission('administer menu'),
'#collapsed' => !$link['link_title'],
'#group' => 'advanced',
'#attached' => array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment