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

Non-admin user cannot create any other users anymore if there is no other role but admin role #2038

Closed
texnixe opened this issue Aug 25, 2019 · 2 comments

Comments

@texnixe
Copy link
Contributor

commented Aug 25, 2019

Describe the bug
When creating a new Editor role (but no other roles) without any settings, this user cannot create new users.

In this case the role radio does not show up and trying to create a user fails. I assume that the default role in this case falls back to admin, making it impossible to create new users. When I add a second role, the role selector reappears and creating users with any of those roles becomes possible again.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Editor role without any settings
  2. Create a new user with this role.
  3. Log in to the Panel with this user
  4. Try to create a new user
  5. See error message ("You are not allowed to create this user").

Expected behavior
While it makes sense that the role selector is not shown when there is only one non-admin role, the role should be set to this non-admin role by default and the user created.

Bildschirmfoto 2019-08-25 um 21 28 45

Kirby Version
Tested with 3.2.3 and 3.2.4-rc1

Console output

Bildschirmfoto 2019-08-25 um 21 29 10

Additional context
Add any other context about the problem here.

@texnixe

This comment has been minimized.

Copy link
Contributor Author

commented Aug 25, 2019

See also:

#1917

@bastianallgeier

This comment has been minimized.

Copy link
Contributor

commented Sep 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.