kopia lustrzana https://github.com/wagtail/wagtail
Pass on the global 'perms' object to PageTitleColumn's context
This is required for the site globe icon to show (for users with site edit permission)pull/10626/head
rodzic
99a3febcad
commit
5a0828a066
|
@ -13,6 +13,7 @@ class PageTitleColumn(BaseColumn):
|
|||
parent_context["request"].user
|
||||
)
|
||||
context["show_locale_labels"] = parent_context.get("show_locale_labels")
|
||||
context["perms"] = parent_context.get("perms")
|
||||
return context
|
||||
|
||||
|
||||
|
@ -122,4 +123,5 @@ class PageTable(Table):
|
|||
def get_context_data(self, parent_context):
|
||||
context = super().get_context_data(parent_context)
|
||||
context["show_locale_labels"] = parent_context.get("show_locale_labels")
|
||||
context["perms"] = parent_context.get("perms")
|
||||
return context
|
||||
|
|
Ładowanie…
Reference in New Issue