Skip to content
Snippets Groups Projects
Commit 2eccba71 authored by catch's avatar catch
Browse files

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment