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

Fix 'Kirby\Panel\Panel::area(): Argument #2 ($area) must be of type a… #39

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

CHE1RON
Copy link
Contributor

@CHE1RON CHE1RON commented Jun 6, 2023

When logging in as non-admin user, I get this:

Kirby\Panel\Panel::area(): Argument #2 ($area) must be of type array|string, null given

Inside index.php, there's this snippet:

image

BUT you have to return an empty array, otherwise .. well, null given 😅

Fixes #37

@Daandelange Daandelange merged commit 74f9527 into Daandelange:master Jun 7, 2023
@Daandelange
Copy link
Owner

Awesome, thanks !

@CHE1RON
Copy link
Contributor Author

CHE1RON commented Jun 7, 2023

@Daandelange Please consider releasing the next beta version 😅

@Daandelange
Copy link
Owner

Yes, I'll try to free some web time to to look into #38 and include a fix, if not I'll throw an update with the current state soon. ;)

Daandelange added a commit that referenced this pull request Jun 13, 2023
Fixes panel error for non-amdmin user roles.
Adds Hungarian translations.
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.

Bug when login as unknown user role
2 participants