By hari, 4 November, 2022 // Get the current user $user = \Drupal::currentUser(); // Check for permission $user->hasPermission('access content overview'); Tags Drupal