Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Missing CP route for myaccount/permissions in Team edition #14976

Closed
AugustMiller opened this issue May 10, 2024 · 2 comments
Closed

[5.x]: Missing CP route for myaccount/permissions in Team edition #14976

AugustMiller opened this issue May 10, 2024 · 2 comments
Assignees
Labels

Comments

@AugustMiller
Copy link
Contributor

AugustMiller commented May 10, 2024

What happened?

Description

When using the Team edition, URLs to your own user element/account work (admin/myaccount), but admin/myaccount/permissions results in a 404.

Steps to reproduce

  1. Install Craft;
  2. Begin a Team edition trial;
  3. Navigate to Users → [Your User];
  4. Click Permissions in the sidebar;

This line covers normal user routes like admin/users/1/permissions, but not the special myaccount path:

'users/<userId:\d+>/permissions' => 'users/permissions',

The base routes presumably don't include this static/non-parameterized route because Solo edition doesn't use the Permissions tab at all!

Craft CMS version

5.1.2 (Team)

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

@AugustMiller AugustMiller changed the title [5.x]: Missing route for myaccount/permissions in Team edition [5.x]: Missing CP route for myaccount/permissions in Team edition May 10, 2024
@i-just i-just self-assigned this May 13, 2024
@i-just
Copy link
Contributor

i-just commented May 13, 2024

Thanks August! I raised a PR for this.

@brandonkelly
Copy link
Member

Fixed in 5.1.3!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants