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
The site preview depends on the preview of the home page. If the pages.preview permission is disabled, the page preview button is disabled, but the site preview button is still there (but doesn't work).
Expected behavior
Site preview button should be hidden if pages.preview permission is disabled.
To reproduce
Disable pages.preview permission for current user role
Uh oh!
There was an error while loading. Please reload this page.
Description
The site preview depends on the preview of the home page. If the
pages.preview
permission is disabled, the page preview button is disabled, but the site preview button is still there (but doesn't work).Expected behavior
Site preview button should be hidden if
pages.preview
permission is disabled.To reproduce
pages.preview
permission for current user roleYour setup
Kirby Version
v5/develop
Additional context
The following line is causing this:
kirby/panel/src/components/Views/Pages/SiteView.vue
Line 22 in ea833c3
The equivalent line in
PageView.vue
checks the permission:kirby/panel/src/components/Views/Pages/PageView.vue
Line 26 in ea833c3
Note that:
pages.preview
permission #7069.pages.preview
permission of the home page, not of the site.The text was updated successfully, but these errors were encountered: