You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to install the first Panel user, after clicking on "Install", the above mentioned error message appears and it is not possible to install the first user.
To Reproduce
Steps to reproduce the behavior:
Download a fresh 3.2.1 Starterkit
Go to yourdomain.com/panel
Enter credentials for the first user
Click on "Install"
See error
It's caused in this line:
if ($role === 'admin' && $user->kirby()->user()->isAdmin() === false) {
Should probably be
if ($role === 'admin' && $user->isAdmin() === false) {
Expected behavior
The first user should be installed without error.
Screenshots
If applicable, add screenshots to help explain your problem.
Kirby Version
3.2.1
Console output
code: 500
exception: "Error"
file: "/Users/sonja/public_html/321/kirby/src/Cms/UserRules.php"
line: 108
message: "Call to a member function isAdmin() on null"
route: "system/install"
status: "error"
Desktop (please complete the following information):
macOS
Safari
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Log in is possible after throwing in a user account from another project.
The text was updated successfully, but these errors were encountered:
I replaced the lines with the new code from the branch and deleted my previously created user. After accessing the panel again, I was successfully able to create a new user. Seems to work!
Describe the bug
When trying to install the first Panel user, after clicking on "Install", the above mentioned error message appears and it is not possible to install the first user.
To Reproduce
Steps to reproduce the behavior:
yourdomain.com/panel
It's caused in this line:
Should probably be
Expected behavior
The first user should be installed without error.
Screenshots
If applicable, add screenshots to help explain your problem.
Kirby Version
3.2.1
Console output
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Log in is possible after throwing in a user account from another project.
The text was updated successfully, but these errors were encountered: