Skip to content

refactor(NavigationManager): move navigation definitions into apps#60458

Open
susnux wants to merge 3 commits into
masterfrom
refactor/navigation-manager
Open

refactor(NavigationManager): move navigation definitions into apps#60458
susnux wants to merge 3 commits into
masterfrom
refactor/navigation-manager

Conversation

@susnux
Copy link
Copy Markdown
Contributor

@susnux susnux commented May 15, 2026

Summary

The manager itself does not need to know what hardcoded-things an app provides, instead the apps itself should handle this.

Adds a bit more separation between apps business logic and the core Nextcloud backend.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@susnux susnux added this to the Nextcloud 35 milestone May 15, 2026
@susnux susnux added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels May 15, 2026
@susnux susnux force-pushed the refactor/navigation-manager branch 2 times, most recently from 07e7726 to ebb1e3f Compare May 16, 2026 08:21
@susnux susnux marked this pull request as ready for review May 16, 2026 08:21
@susnux susnux requested review from a team, hweihwang and sorbaugh as code owners May 16, 2026 08:21
@susnux susnux requested review from Altahrim, CarlSchwan, icewind1991 and provokateurin and removed request for a team May 16, 2026 08:21
@susnux susnux force-pushed the refactor/navigation-manager branch 2 times, most recently from e94945b to 33914a2 Compare May 17, 2026 09:56
Comment thread apps/settings/lib/AppInfo/Application.php Outdated
}

foreach ($apps as $app) {
if (!$this->userSession->isLoggedIn() && !$this->appManager->isEnabledForUser($app, $this->userSession->getUser())) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see why this is necessary now, but doesn't this lead to exposing apps to the user that they shouldn't be able to see?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See line 207-211 its basically already handled because $app is set already to enabled apps for that user

susnux added 3 commits May 27, 2026 11:34
The manager itself does not need to know what hardcoded-things an app provides,
instead the apps itself should handle this.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the refactor/navigation-manager branch from 33914a2 to 2b2c21f Compare May 27, 2026 09:34
@susnux susnux requested a review from provokateurin May 27, 2026 09:34
@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented May 27, 2026

/backport to stable34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews backport-request ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants