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