Posted by LOBsTerr on 03/10/2021 \Drupal::currentUser()->hasRole('administrator') Drupal 9 User Related items How to check if the current user has a permission in Drupal