Comments

internetdevels’s picture

Status: Active » Needs review
StatusFileSize
new1.9 KB

Here is the patch.

andypost’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Does not applies

+++ b/core/modules/path/path.module
@@ -116,6 +116,7 @@ function path_form_node_form_alter(&$form, $form_state) {
+  $account = Drupal::request()->attributes->get('_account');

@@ -230,6 +231,7 @@ function path_node_predelete(EntityInterface $node) {
+  $account = Drupal::request()->attributes->get('_account');

Should use Drupal::currentUser() service

andypost’s picture

Component: user system » path.module
albert volkman’s picture

Status: Needs work » Needs review
StatusFileSize
new1006 bytes
new1.82 KB

Re-rolled and applied suggestion from #2.

andypost’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs reroll

Great! all fixed now

$ git grep user_access core/modules/path/
core/modules/path/path.module:128:    '#access' => user_access('create url aliases') || user_access('administer url aliases'),
core/modules/path/path.module:200:      '#access' => user_access('create url aliases') || user_access('administer url aliases'),
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.