diff -u b/core/modules/media/src/MediaAccessControlHandler.php b/core/modules/media/src/MediaAccessControlHandler.php --- b/core/modules/media/src/MediaAccessControlHandler.php +++ b/core/modules/media/src/MediaAccessControlHandler.php @@ -39,7 +39,8 @@ if ($account->hasPermission('edit own ' . $type . ' media') && $is_owner) { return AccessResult::allowed()->cachePerPermissions()->cachePerUser()->addCacheableDependency($entity); } - // @todo: Deprecate this permissions in https://www.drupal.org/project/drupal/issues/2925459 + // @todo Deprecate this permissions in + // https://www.drupal.org/project/drupal/issues/2925459. if ($account->hasPermission('update any media')) { return AccessResult::allowed()->cachePerPermissions(); } @@ -55,7 +56,8 @@ if ($account->hasPermission('delete own ' . $type . ' media') && $is_owner) { return AccessResult::allowed()->cachePerPermissions()->cachePerUser()->addCacheableDependency($entity); } - // @todo: Deprecate this permissions in https://www.drupal.org/project/drupal/issues/2925459 + // @todo Deprecate this permissions in + // https://www.drupal.org/project/drupal/issues/2925459. if ($account->hasPermission('delete any media')) { return AccessResult::allowed()->cachePerPermissions(); }