← all change records

#3411485 UserSession::hasPermission() and User::hasPermission() require string permission now

released Target 10.3.x Published 2024-03-01
#3410098

Generated 2026-08-02 14:00 UTC

Matching rules (2)

  • from: arg: 0 fqn: '\Drupal\Core\Session\UserSession::hasPermission' types: - 'null' to: arg: 0 fqn: '\Drupal\Core\Session\UserSession::hasPermission' types: - not_null
  • from: arg: 0 fqn: '\Drupal\user\Entity\User::hasPermission' types: - 'null' to: arg: 0 fqn: '\Drupal\user\Entity\User::hasPermission' types: - not_null

Affected contrib projects (42)

Project legacy in_flight migrated installs files adopters
google_analytics 0 0 1 137,548 0 1
xmlsitemap 0 0 2 130,687 0 1
backup_migrate 0 0 1 118,229 0 1
scheduler 0 0 1 104,873 0 1
role_delegation 0 0 1 55,992 0 2
quickedit 0 0 2 38,100 0 1
userprotect 0 0 1 14,639 0 1
tfa 0 0 2 14,288 0 5
blog 0 0 1 11,244 0 1
moderation_dashboard 0 0 2 8,261 0 1
bamboo_twig 0 0 1 3,461 0 1
privatemsg 0 0 1 2,611 0 1
content_synchronizer 0 0 1 2,092 0 1
views_field_permissions 0 0 1 1,484 0 1
administration_language_negotiation 0 0 1 1,088 0 1
oauth2_server 0 0 1 1,049 0 1
dxpr_builder 0 0 3 1,011 0 1
cms_content_sync 0 0 1 948 0 1
notify 0 0 1 773 0 3
miniorange_2fa 0 0 1 708 0 1
shurly 0 0 1 625 0 2
moderation_note 0 0 1 519 0 1
opigno_learning_path 0 0 1 498 0 2
alogin 0 0 1 209 0 1
calculation_fields 0 0 1 163 0 2
tripal 0 0 1 99 0 4
achievements 0 0 1 82 0 1
comingsoon_mode 0 0 1 27 0 1
gauth_user 0 0 1 27 0 1
otp_field 0 0 1 23 0 2
media_from_images 0 0 2 21 0 1
epayco 0 0 1 20 0 1
intercept 0 0 1 16 0 2
micro_user 0 0 1 16 0 1
static_generator 0 0 1 16 0 1
crowd 0 0 1 14 0 1
api 0 0 1 13 0 1
user_coins 0 0 1 8 0 1
login_time_restriction 0 0 1 7 0 1
access_unpublished_linked_nodes 0 0 1 3 0 2
translators 0 0 1 3 0 2
knowledge 0 0 1 2 0 1