Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
user system
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Aug 2013 at 09:12 UTC
Updated:
29 Jul 2014 at 22:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
internetdevels commentedHere is the patch.
Comment #3
andypostUse Drupal::currentUser() service https://drupal.org/node/2032447
Comment #4
michaelhiiva commentedComment #5
michaelhiiva commentedProvided wrong patch in #4.
Comment #6
andypostthe '\' is not needed in procedural code
Drupal::currentUser()->hasPermission() is enough
Comment #7
michaelhiiva commented@andypost Thanks for the information.
Comment #8
andypostGreat!
Comment #9
webchickCommitted and pushed to 8.x. Thanks!