question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tabs are showing even when there are no visible panels inside

See original GitHub issue

Issue Summary

In wagtail 3.0 a tab in the admin UI is shown even if it has no visible panels or fields (e.g. because of lacking user permissions).

Steps to Reproduce

  1. In the bakery demo, update the blog model (or any model) with the following settings_panels
    settings_panels = [
        FieldPanel("go_live_at", permission='superuser')
    ]
  1. As superuser, confirm you can view the settings tab and see one field
  2. Create a user that does not have superuser (admin) permissions
  3. In a new incognito window, sign in as the non-superuser
  4. Load any blog page
  5. Expected: The settings tab should not show at all
  6. Actual: The settings tab shows but no fields are visible within it

Screenshot

User does not have permissions to see the settings panel fields and instead of the tab not showing at all, it shows but is blank inside.

Screen Shot 2022-05-26 at 8 00 46 am

Additional context

  • This is because wagtailadmin/panels/tabbed_interface.html renders child in self.children instead of child in self.visible_children.
  • Maybe there is a good reason for this implementation but from a editor perspective it looks like something’s wrong…

Technical details

  • Python version: 3.9.
  • Django version: 4.0.
  • Wagtail version: 3.0.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
katzmocommented, Jun 2, 2022

Thank you!!!

0reactions
lb-commented, Jun 2, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Panel inside tab not displayed - java
Everything is working fine one by one but all together are not displaying. Is there is a "special" layout to use for the...
Read more >
Task Manager Menu Bar and Tabs Are Not Visible
Click Start, and then click Run. Type taskmgr.exe. Hold down CTRL+ALT+SHIFT at the same time, and while holding them down press ENTER.
Read more >
What To Do When Worksheet Tabs Go Missing
If so, the first place to check is to see if the worksheet has been hidden. In Excel 2007 and later, you can...
Read more >
The screen tabs are not visible in the new Jira issue view.
The screen tabs are not visible in the new Jira issue view. ... that Tab is always showing under Show More even if...
Read more >
Tabs | APG | WAI
When a tabbed interface is initialized, one tab panel is displayed and ... their normal browser scrolling functions even when focus is inside...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found