Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Prokyonn
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related issues/PRs #7672
License MIT

What's in this PR?

This PR implements DescendantProviderInterface support for pages, adding:

  • Permission checks for all descendant pages when deleting a parent page
  • Warning dialog when attempting to delete pages with children (requires force=true to proceed)
  • findDescendantIdsById() method in PageRepository for querying page hierarchies

Why?

Missing feature from Sulu 3.0

@Prokyonn Prokyonn force-pushed the feature/descendant-provider branch from 2e352a3 to 223f318 Compare November 14, 2025 08:35
@Prokyonn Prokyonn marked this pull request as ready for review November 14, 2025 08:36
Comment on lines 46 to 49
private AccessControlRepositoryInterface $accessControlRepository,
private SystemStoreInterface $systemStore,
private ?Security $security,
private array $permissions,
Copy link
Member

@alexander-schranz alexander-schranz Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure handle this in the application layer as its unrelated to page domain, as security is more related to UserInterface or Infrastracture Layer 🤔 .

Copy link
Member Author

@Prokyonn Prokyonn Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure handle this in the application layer as its unrelated to page domain, as security is more related to UserInterface or Infrastracture Layer 🤔 .

Yeah, I wasn’t completely sure about it either. It also feels a bit odd in the controller.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed we move to request listener

# Conflicts:
#	packages/page/src/Infrastructure/Symfony/HttpKernel/SuluPageBundle.php
@Prokyonn Prokyonn force-pushed the feature/descendant-provider branch from 15da48b to 6162229 Compare November 14, 2025 10:43
@alexander-schranz alexander-schranz merged commit 1a2c67b into sulu:3.0 Nov 14, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants