getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.27k stars 167 forks source link

User blueprint: `home` option redirect fails for users w/out panel access #4056

Closed sebastiangreger closed 2 years ago

sebastiangreger commented 2 years ago

Description

Setting a frontend URL in the home option of a user blueprint (e.g. home: "{{ site.find('notes').children.first.url }}") leads to a pop-up with an error "You are not allowed to access the panel" if panel: false is set for that user.

Expected behavior
Forwarding a user without panel access to a frontend URL should not lead to an error. This is a precondition to making use of the Kirby core's login flows for frontend-only users.

As discussed in this Discord thread.

To reproduce

  1. Install a fresh Starterkit and create an admin user
  2. Add panel: false and home: "{{ site.find('notes').children.first.url }}" to the user/default.yml blueprint
  3. Try to log in
  4. See error

Your setup

Kirby Version
3.6.1

Your system (please complete the following information)

Additional context
Possibly related to #4054 (probably need to be fixed first, before this will work)

bastianallgeier commented 2 years ago