Skip to content

[6.x] Fixes user settings for solo edition#18778

Merged
brianjhanson merged 2 commits into6.xfrom
bugfix/user-settings-solo
May 1, 2026
Merged

[6.x] Fixes user settings for solo edition#18778
brianjhanson merged 2 commits into6.xfrom
bugfix/user-settings-solo

Conversation

@brianjhanson
Copy link
Copy Markdown
Contributor

While clicking around I noticed that clicking the users item when using the solo edition would result in a "Not found" error.

It turns out the settings/users route was only defined for team versions and up, but Solo still uses it in v5.

I played with a handful of approaches but this one seemed to work best despite not being my favorite.

Feel free to let me know if there's a better way to do this.

@semanticdiff-com
Copy link
Copy Markdown

Review changes with  SemanticDiff

@brianjhanson brianjhanson requested a review from riasvdv May 1, 2026 20:52
Comment thread routes/cp.php
if (Edition::isAtLeast(Edition::Team)) {
Route::get('settings/users', [UserGroupsController::class, 'index']);
} else {
Route::get('settings/users', fn () => redirect(cp_url('settings/users/fields')));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could also use Route::redirect( but either is fine

@brianjhanson brianjhanson merged commit c9e81aa into 6.x May 1, 2026
16 checks passed
@brianjhanson brianjhanson deleted the bugfix/user-settings-solo branch May 1, 2026 21:04
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