Drupal : Check if the current user has the specific permission

Solution:

    if( \Drupal::currentUser()->hasPermission('create article content') )
    { 
        // ...
    }

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare